绑定在你的输出技能前面
/script local n,m,isActive = UnitHealth("pet")/UnitHealthMax("pet"),UnitMana("pet")/UnitManaMax("pet"),IsBuffActive("相位变换","pet");if not isActive then if n < 0.8 or m < 0.15 then PetPassiveMode();PetFollow();PetWait();CastSpellByName("相位变换") else PetAttack();end;else if not UnitAffectingCombat("player") then PetFollow();else if m > 0.8 then PetAttack();end;end;end;
/script local n,m,isActive = UnitHealth("pet")/UnitHealthMax("pet"),UnitMana("pet")/UnitManaMax("pet"),IsBuffActive("相位变换","pet");if not isActive then if n < 0.8 or m < 0.15 then PetPassiveMode();PetFollow();PetWait();CastSpellByName("相位变换") else PetAttack();end;else if not UnitAffectingCombat("player") then PetFollow();else if m > 0.8 then PetAttack();end;end;end;