Core/Spells: Small update to TriggeredFlags and fix Glyph of Totem of Wrath with it.

Closes #2458
This commit is contained in:
Machiavelli
2011-07-31 23:47:11 +02:00
parent f26edf09d3
commit c074be2944
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -898,11 +898,11 @@ void Spell::prepareDataForTriggerSystem(AuraEffect const* /*triggeredByAura*/)
// Ranged autorepeat attack is set as triggered spell - ignore it
if (!(m_procAttacker & PROC_FLAG_DONE_RANGED_AUTO_ATTACK))
{
if (!(_triggeredCastFlags & TRIGGERED_ALLOW_PROC_EVENTS) &&
if (_triggeredCastFlags & TRIGGERED_DISALLOW_PROC_EVENTS &&
(m_spellInfo->AttributesEx2 & SPELL_ATTR2_TRIGGERED_CAN_TRIGGER_PROC ||
m_spellInfo->AttributesEx3 & SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2))
m_procEx |= PROC_EX_INTERNAL_CANT_PROC;
else if (!(_triggeredCastFlags & TRIGGERED_ALLOW_PROC_EVENTS))
else if (_triggeredCastFlags & TRIGGERED_DISALLOW_PROC_EVENTS)
m_procEx |= PROC_EX_INTERNAL_TRIGGERED;
}
// Totem casts require spellfamilymask defined in spell_proc_event to proc