Well that was pretty simple, and it works. Thanks buddy. +Rep ofc. edit: have to "spread some rep around first" -.-
I had another idea, but I just can't get it to work properly. I want to be able to charge, then if my target goes out of melee range, switch to zerker stance and intercept, but switching back to battle stance immediately after intercept.
All I've got atm is this:
Code:
if IsSpellInRange("Charge","target")==1 and GetSpellCooldown("Charge")==0 then CastSpellByName("Charge")
if not UnitDebuff("target", "Charge Stun") and not UnitBuff("target", "Divine Shield","Hand of Protection","Ice Block") and IsSpellInRange("Intercept","target")==1 and GetSpellCooldown("Charge")>0 and GetSpellCooldown("Intercept")==0 then CastSpellByName("Berserker Stance") CastSpellByName("Intercept")
Another problem I have is that it likes to cast charge/intercept even though I told it not to do so if the target has any kind of immunity.