Kod:
#showtooltip Charge
/startattack
/run if(IsSpellInRange('Charge','target')==1 and GetSpellCooldown('Charge')==0)then CastSpellByName('Charge')end
/run if(UnitPower('player'))<=35 and GetSpellCooldown('Bloodrage')==0 then CastSpellByName('Bloodrage')end
/run if(UnitPower('player'))>=70 and IsShiftKeyDown() then CastSpellByName('Cleave')end
/run if(UnitPower('player'))>=30 and IsShiftKeyDown() and GetSpellCooldown('Sweeping Strikes')==0 then CastSpellByName('Sweeping Strikes')end
/run if(UnitPower('player'))>=85 and (UnitHealth("target")/UnitHealthMax("target")>0.2) and not IsShiftKeyDown() then CastSpellByName('Heroic Strike')end
/run i=1 while(i<=40)do a={UnitDebuff("target",i)} if(a[1]=="Rend" and a[8]=="player")then break elseif(i==40 and UnitPower('player')>=10) then CastSpellByName("Rend") i=i+1 else i=i+1 end end
/run if (UnitHealth("target")/UnitHealthMax("target")<=0.2) or (IsSpellInRange('Slam','target'))==0 then return elseif (GetSpellCooldown("Mortal Strike"))==0 and not UnitBuff("player","Sudden Death") and (UnitPower('player'))>=30 then CastSpellByName("Mortal Strike") elseif not UnitBuff("player","Sudden Death") and UnitBuff("player","Taste for Blood") and (UnitPower('player'))>=5 then CastSpellByName("Overpower") elseif UnitBuff("player","Sudden Death") and (UnitPower('player'))>=10 then CastSpellByName("Execute") elseif not UnitIsPlayer('target') and GetSpellCooldown('Mortal Strike')~=0 and (UnitPower('player'))>=15 and not UnitBuff('player','Sudden Death') and not UnitBuff('player','Taste for Blood') then CastSpellByName('Slam') end
/run if (UnitHealth("target")/UnitHealthMax("target")>=0.2) or (IsSpellInRange('Slam','target'))==0 then return elseif not UnitBuff("Player","Sudden Death") and UnitBuff("Player","Taste for Blood") and (UnitPower('player'))>=5 then CastSpellByName("Overpower")elseif (UnitPower('player'))>=10 then CastSpellByName("Execute")end
/run if (GetSpellCooldown("Heroic Throw"))==0 and (IsSpellInRange('Heroic Throw','target'))==1 then CastSpellByName("Heroic Throw") end
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
To macro, dla Warriora Arms. Raz klikamy, a odpowiednie spelle działają
Macro dla WotLK