From 62e294937048d8843be9266c3c59f4062174a62c Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 12 Nov 2008 09:28:38 -0600 Subject: [svn] Fix a typo. This solve the bug that sap and other spells cannot be removed by damage. The original author of AURA_INTERRUPT_FLAG_UNATTACKABLE is kamir86. Sorry for not mentioning that in rev 221. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index d4549352bb9..b31ec79ec49 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -931,7 +931,7 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa } } else */ - RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_DAMAGE); + pVictim->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_DAMAGE); pVictim->RemoveSpellbyDamageTaken(damage, spellProto ? spellProto->Id : 0); if (damagetype != NODAMAGE && damage && pVictim->GetTypeId() == TYPEID_PLAYER) -- cgit v1.2.3