Fixed a crash. Closes issue #1182.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-03-19 16:30:07 +01:00
parent a77ba0bf56
commit 64066da223
+2
View File
@@ -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 // 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 (GetSpellProto()->SpellFamilyFlags[0] & 0x00004000)
{ {
if (!caster)
break;
if (apply) if (apply)
{ {
if (target != caster && target->GetHealth() <= target->GetMaxHealth() / 4) if (target != caster && target->GetHealth() <= target->GetMaxHealth() / 4)