WoWInterface - View Single Post - Looking for Reminder Addon
View Single Post
09-10-12, 11:09 PM   #5
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Le View Post
Can you make one for a Fury/Arms Warrior so it would tell me if I'm in Defensive Stance when not in Protection spec? I thought they would turn off your stance when you switch spec like they do for Death Knights but they don't. I tried using TellMeWhen for it but can't seem to get it to work.
local name, _, icon = GetSpellInfo(71)
local message = format("Get out of |T%s:20:20:-5|t %s!", icon, name)
local color = { r = 1, g = 1, b = 0 }

local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event)
	if GetSpecialization() ~= 3 and GetShapeshiftForm() == 2 then
		RaidNotice_AddMessage(RaidWarningFrame, message, color)
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addon Turn any code into an addon More addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please dont PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote