Set flag for offhand melee spells to allow proper triggering of weapon-specific effects (fix by Lynx3d)

--HG--
branch : trunk
This commit is contained in:
click
2010-07-25 17:06:12 +02:00
parent fce1f5b014
commit 33e079489b

View File

@@ -759,6 +759,8 @@ void Spell::prepareDataForTriggerSystem(AuraEffect const * /*triggeredByAura*/)
{
case SPELL_DAMAGE_CLASS_MELEE:
m_procAttacker = PROC_FLAG_SUCCESSFUL_MELEE_SPELL_HIT;
if (m_attackType == OFF_ATTACK)
m_procAttacker |= PROC_FLAG_SUCCESSFUL_OFFHAND_HIT;
m_procVictim = PROC_FLAG_TAKEN_MELEE_SPELL_HIT;
break;
case SPELL_DAMAGE_CLASS_RANGED: