From 64066da2230f44ab05b9a6b7000b6cda462f7bb7 Mon Sep 17 00:00:00 2001 From: Xanadu Date: Fri, 19 Mar 2010 16:30:07 +0100 Subject: Fixed a crash. Closes issue #1182. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 412ec17d60c..1732656b8b1 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1412,6 +1412,8 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, // Drain Soul - If the target is at or below 25% health, Drain Soul causes four times the normal damage if (GetSpellProto()->SpellFamilyFlags[0] & 0x00004000) { + if (!caster) + break; if (apply) { if (target != caster && target->GetHealth() <= target->GetMaxHealth() / 4) -- cgit v1.2.3