Core/Spells: Corrected trigger flag for melee based spells

Closes #2002
This commit is contained in:
elecyb
2011-06-15 23:16:45 +07:00
committed by tobmaps
parent a6708fd595
commit 53e45b57f8
+2 -2
View File
@@ -819,7 +819,7 @@ void Spell::prepareDataForTriggerSystem(AuraEffect const* /*triggeredByAura*/)
m_procAttacker |= PROC_FLAG_DONE_OFFHAND_ATTACK; m_procAttacker |= PROC_FLAG_DONE_OFFHAND_ATTACK;
else else
m_procAttacker |= PROC_FLAG_DONE_MAINHAND_ATTACK; m_procAttacker |= PROC_FLAG_DONE_MAINHAND_ATTACK;
m_procVictim = PROC_FLAG_TAKEN_MELEE_AUTO_ATTACK; m_procVictim = PROC_FLAG_TAKEN_SPELL_MELEE_DMG_CLASS;
break; break;
case SPELL_DAMAGE_CLASS_RANGED: case SPELL_DAMAGE_CLASS_RANGED:
// Auto attack // Auto attack
@@ -845,7 +845,7 @@ void Spell::prepareDataForTriggerSystem(AuraEffect const* /*triggeredByAura*/)
// For other spells trigger procflags are set in Spell::DoAllEffectOnTarget // For other spells trigger procflags are set in Spell::DoAllEffectOnTarget
// Because spell positivity is dependant on target // Because spell positivity is dependant on target
} }
m_procEx= PROC_EX_NONE; m_procEx = PROC_EX_NONE;
// Hunter trap spells - activation proc for Lock and Load, Entrapment and Misdirection // Hunter trap spells - activation proc for Lock and Load, Entrapment and Misdirection
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && if (m_spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER &&