Core/Spells: Knockback spells should also have mechanic to allow setting proper immunities

This commit is contained in:
Shauren
2011-05-07 21:04:43 +02:00
parent 352de4b688
commit eeee8368bd
+6
View File
@@ -3547,6 +3547,12 @@ void SpellMgr::LoadSpellCustomAttr()
} }
break; break;
} }
case SPELL_EFFECT_KNOCK_BACK:
case SPELL_EFFECT_KNOCK_BACK_DEST:
if (spellInfo->EffectMechanic[i] == MECHANIC_NONE)
spellInfo->EffectMechanic[i] = MECHANIC_KNOCKOUT;
++count;
break;
} }
switch (SpellTargetType[spellInfo->EffectImplicitTargetA[j]]) switch (SpellTargetType[spellInfo->EffectImplicitTargetA[j]])