# showtooltip 真言术:盾 /script local t = "target"; /script if UnitIsEnemy("player","target") then t = "player";end; /script if not UnitExists("target") then t = "player";end; /script if not IsBuffActive("虚弱灵魂",t) and not IsBuffActive("真言术:盾",t) then CastSpellByName("真言术:盾",t); end;
上buff宏,若目标无该buff,则给目标上buff,技能名称可以自己修改
1 2 3 4 5 6
# showtooltip 神圣之灵 /script t = "target"; /script if UnitIsEnemy("player","target") then t = "player";end; /script if not UnitExists("target") then t = "player";end; /script if not IsBuffActive("神圣之灵",t) then CastSpellByName("神圣之灵",t); end;