View Single Post
10-08-12, 01:15 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,325
Originally Posted by Mayoren View Post
Code:
if combatEvent == "SPELL_CAST_SUCCESS" then
	local spell = spellData[spellID]
	if not spell then
		return
	end

	if combatEvent == "SPELL_AURA_APPLIED" then
		SendChatMessage(sChat,"Say")
	end

	if combatEvent == "SPELL_INTERRUPT" then
		SendChatMessage(sChat,"Say")
	end

	SendChatMessage(fChat,"Say")
end
This structure makes it so the success messages would never show since a variable can't have two values at once. Honestly, the SPELL_CAST_SUCCESS handling doesn't make sense since the spell finishing casting isn't related to whether or not it actually hit. I would get rid of that check and the fail message at the end of it.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote