aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-14 18:31:59 +0200
committerQAston <none@none>2009-07-14 18:31:59 +0200
commit87ca52c2a9c77db7b9a3f6a4d4f7f12b57b854a5 (patch)
tree39c3846cacb318ad5c241651b6cf20788c307aa5 /src/game/Unit.cpp
parent96cd58bd3791d86533d4b0e7080017271329841b (diff)
*Do not allow spells having damage to break root casted by the spell.
*Typohunt: wand skill gain, Improved spell reflection aura drop from party. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 696c17fba86..e55b54996f0 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -12819,6 +12819,10 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
case SPELL_AURA_MOD_ROOT:
if (isVictim && damage)
{
+ // Damage is dealt after proc system - lets ignore auras which wasn't updated yet
+ // to make spell not remove its own aura
+ if (i->aura->GetAuraDuration() == i->aura->GetAuraMaxDuration())
+ break;
int32 damageLeft = triggeredByAura->GetAmount();
// No damage left
if (damageLeft < damage )