|
求助大神,当触发熔火之心buff时,不能自动施放烧尽的问题。
local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
if (BeeUnitHealth("target","%")<28 or BeeUnitHealth("player","%")<40 and (BeeTargetDeBuffTime("腐蚀术")>0 and BeeTargetDeBuffTime("痛苦诅咒")>0 and BeeTargetDeBuffTime("献祭")>0 and BeePlayerBuffTime("灭杀")>0 and BeePlayerBuffTime("熔火之心")>0 and GetUnitSpeed("player")>0)) then
BeeRun("/cast 灵魂之火"); end
if BeeTargetDeBuffTime("熔火之心")>0 then BeeRun("/cast 烧尽")
return
end
if BeeTargetDeBuffTime("献祭")<=1 and not BeeUnitCastSpellName("player") then
BeeRun("/cast 献祭","target")
return true;
end
if BeeTargetDeBuffTime("腐蚀术")<=0 and not BeeUnitCastSpellName("player") then
BeeRun("/cast 腐蚀术","target")
return true;
end
if BeeTargetDeBuffTime("痛苦诅咒")<=0 and not BeeUnitCastSpellName("player") then
BeeRun("/cast 痛苦诅咒","target")
return true;
end
if BeeTargetDeBuffTime("腐蚀术")>0 and BeeTargetDeBuffTime("痛苦诅咒")>0 and BeeTargetDeBuffTime("献祭")>0 and not BeeUnitCastSpellName("player") then
BeeRun("/cast 暗影箭")
return true;
end
|
|