aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXanadu <none@none>2010-03-19 16:30:07 +0100
committerXanadu <none@none>2010-03-19 16:30:07 +0100
commit64066da2230f44ab05b9a6b7000b6cda462f7bb7 (patch)
treedb695b18dcd120b2b18352ba442cfd5066dc6086 /src
parenta77ba0bf5621a4990ed123e78744dfaf78d9fe82 (diff)
Fixed a crash. Closes issue #1182.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp2
1 files changed, 2 insertions, 0 deletions
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)