if BeeUnitAffectingCombat() then -- 在战斗中
-- 目标存在且是boss且没有死亡且目标血量低于50000
if UnitName("target") and UnitClassification("target") == "worldboss" and not BeeUnitIsDead("target") and UnitHealth("target") < 50000 then
-- 有战斗之鼓且在不在CD中
if GetItemInfo("战斗之鼓") and BeeSpellCoolDown("战斗之鼓") == 0 then
BeeRun("战斗之鼓");
end
end
end
大佬,我试着写了一个,想着实现怪物死亡,就拾取一回,但是它一直在运行拾取,不知道哪里的问题,麻烦给看看
if BeeUnitHealth("target","%")<0 or
BeeUnitTargetIsPlayer() and
BeeUnitAffectingCombat() then
BeeRun("/use 一键拾取宝石" )
return;
end