Originally Posted by
GRB
Its fine dont worry, have nothing to do today also. LOL
So if its not working the only thing that can be wrong is the "class == v".
change that code to
just for testing purposes. and see if u get the buff by targeting a warrior.
P.S if still dont work, change to
P.S2 - Be aware that the name of the class that return from UnitClass("target") always have the first letter as capital. Warrior...Mage...Druid
i tried
Code:
local class, token = UnitClass("target")
local ps = {Druid, Paladin, Warrior, Death Knight, Hunter, Rogue}
for i,v in ipairs(ps) do
if UnitBuffID("player", 7302) == nil and UnitAffectingCombat("player") == nil and class == "Warrior" then
return true
end
end
and
Code:
local class, token = UnitClass("target")
local ps = {Mage, Warlock, Shaman, Priest}
for i,v in ipairs(ps) do
if UnitBuffID("player", 6117) == nil and UnitAffectingCombat("player") == nil and class == "Warlock" then
return true
end
end
both at different times being the only code in the rotation. tested on random lvl 85 Warrior's and Warlock's in org. so far.