Originally Posted by d16174l4n63l
When I repeat the code but instead change it to checking for Warlock Armors, on every other class it displays the Armor Warning.
Code:
if ( class == "WARLOCK" ) and Armor then
|
Your logic is a little bit off here, try this out in place of the above line:
Code:
if (class == "WARLOCK" and Armor) or class ~= "WARLOCK" then
This should check if the class is a warlock
and has the buff,
or if the class isn't even a warlock. It would then hide the alert like you want it to. On the other hand, if class is a warlock and Armor is false it'll go to your else statement.
Hope that gets you going!