View Single Post
09-24-10, 09:35 PM   #258
Katae
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 208
Originally Posted by d16174l4n63l View Post
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!

Last edited by Katae : 09-24-10 at 09:40 PM.
  Reply With Quote