Im trying to get some basic lua macro to work on tbc servers but it doesnt seem to work...
For example this one:
/run if not UnitBuff("player","Battle Shout") and not UnitAffectingCombat("player") then CastSpellByName("Battle Shout") end
or even this one:
/run if GetShapeshiftForm()==1 and UnitPower("player") >= 10 and not UnitDebuff("target", "Rend") then CastSpellByName("Rend") end
But i could get to work this one:
/run if IsUsableSpell("Charge", "target") == 1 and IsSpellInRange("Charge", "target") == 1 then CastSpellByName("Charge") end
The problem seems to be at the command UnitDebuff and UnitBuff...
Did at tbc time the lua macro was different somehow?
Please someone explain this to me...