aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-12 09:28:38 -0600
committermegamage <none@none>2008-11-12 09:28:38 -0600
commit62e294937048d8843be9266c3c59f4062174a62c (patch)
treef26c10badb6cb7b66194472d03091ba2e2cd095f
parentad217ed2f4301ce984b4e0f4cf11e0006815b591 (diff)
[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
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
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)