Core/Spells: Deterrence should deflect Death Grip.

Fixes issue 4582.

Based on gastuslg´s patch and thanks to click.

--HG--
branch : trunk
This commit is contained in:
_manuel_
2010-11-09 23:02:47 -03:00
parent 93160c369e
commit 5674f81e51
+1 -1
View File
@@ -1445,7 +1445,7 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
GetSummonPosition(effIndex, pos);
if (Unit *unit = unitTarget->GetVehicleBase()) // what is this for?
unit->CastSpell(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), damage, true);
else
else if (!unitTarget->HasAuraType(SPELL_AURA_DEFLECT_SPELLS)) // Deterrence
unitTarget->CastSpell(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), damage, true);
return;
case 46584: // Raise Dead