[9956] Spell 45524 expected apply debuf 55095 to target at cast.

This commit is contained in:
VladimirMangos 2010-05-22 16:18:29 +04:00
parent de454d6ff8
commit 94f7a7709d
3 changed files with 10 additions and 2 deletions

View file

@ -2421,7 +2421,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
{
if (m_caster->IsFriendlyTo(unitTarget))
{
if (unitTarget->GetCreatureType() != CREATURE_TYPE_UNDEAD)
if (!unitTarget || unitTarget->GetCreatureType() != CREATURE_TYPE_UNDEAD)
return;
int32 bp = int32(damage * 1.5f);