/script R=1;for i=1,16 do if UnitBuff("target", i) then if string.find(UnitBuff("target", i), "Renew") then R=0;DEFAULT_CHAT_FRAME:AddMessage("目标恢复中");end;end;end;if R>0 then CastSpellByName("恢复(等级 10)");end
AM变身切条宏:
/script local i,b,f,p;for i=1,16 do b=UnitBuff("player",i);if b and strfind(b,"wform") then f=1;break;end;end;if f then p=1;else p=2;end;CastSpellByName("暗影形态");CURRENT_ACTIONBAR_PAGE=p;ChangeActionBarPage();
驱散当前目标,当前目标无驱散,驱散自己宏:
/script local t; if UnitDebuff("player",1,1) then t=1;end; CastSpellByName("驱散魔法",t);