编辑代码

--贴身一起放4个图腾
if CheckInteractDistance("target",4) 
and BeeRange("target")<=5           --距离5码
and not BeeTotemType(1)             --无火TT
and not BeeTotemType(2)              --无土TT
and not BeeTotemType(3)               --无水TT
and not BeeTotemType(4)               --无风TT


then BeeRun("/cast 元素的召唤");return;end





--图腾只在5码内才释放熔岩,且蓝够30%
if BeeUnitAffectingCombat("player") 
and CheckInteractDistance("target",1) 
and BeeRange("target")<=5 
and BeeUnitMana("player","%",0)>30 
and not BeeTotemType(1) 
and BeeIsRun("熔岩图腾","nogoal") 

then BeeRun("熔岩图腾","nogoal");return;end

--独立补充图腾
if CheckInteractDistance("target",4) 
and BeeRange("target")<=10
 then

    if BeeTotemType(1) and not BeeTotemType(2) and not BeeTotemType(3) and not BeeTotemType(4) then BeeRun("/cast 先祖的召唤");return;end
    if not BeeTotemType(2) and BeeTotemType(3) and BeeTotemType(4) and BeeIsRun("大地之力图腾","nogoal") then BeeRun("大地之力图腾","nogoal");return;end
    if not BeeTotemType(3) and BeeTotemType(2) and BeeTotemType(4) and  BeeIsRun("法力之泉图腾","nogoal") then BeeRun("法力之泉图腾","nogoal");return;end
    if not BeeTotemType(4) and BeeTotemType(2) and BeeTotemType(3) and  BeeIsRun("风怒图腾","nogoal") then BeeRun("风怒图腾","nogoal");return;end
end


if CheckInteractDistance("target",4) 
and BeeTotemType(1) 
and not BeeTotemType(2) 
and not BeeTotemType(3) 
and not BeeTotemType(4) 

then BeeRun("/cast 先祖的召唤");return;end