Fix crash #3306 in Unit::HandleDummyAuraProc

This commit is contained in:
megamage
2011-10-07 18:01:41 -04:00
parent ba8cade780
commit 47994f82d7
+2
View File
@@ -5707,6 +5707,8 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
// Glyph of Polymorph // Glyph of Polymorph
case 56375: case 56375:
{ {
if(!target)
return false;
target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE, 0, target->GetAura(32409)); // SW:D shall not be removed. target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE, 0, target->GetAura(32409)); // SW:D shall not be removed.
target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT); target->RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
target->RemoveAurasByType(SPELL_AURA_PERIODIC_LEECH); target->RemoveAurasByType(SPELL_AURA_PERIODIC_LEECH);