So I have this if statement:
Code:
local isBuffed1,_,_,_,_,_,_,isMine1 = UnitAura("Player","Battle Shout");
local isBuffed2,_,_,_,_,_,_,isMine2 = UnitAura("Player","Commanding Shout");
if((isBuffed1 ~= nil and isBuffed2 ~= nil) or isMine1 == "PLAYER" or isMine2 == "PLAYER") then
bString = bString.."\nTest :O"
else
bString = bString.."\nShout"
end
It's only half working, and I guess I'm to dumb to notice why. :P
Basically, the problem is that the vars "isMine1" and "isMine2" are giving me trouble. If I go in game, cast a shout on myself, and then print the var it returns "PLAYER". However, in the if statement I can never get either one to return true for
isMine1 == "PLAYER"
Anyone notice what I'm doing wrong, cause I'm stumped. =/