From 87ca52c2a9c77db7b9a3f6a4d4f7f12b57b854a5 Mon Sep 17 00:00:00 2001 From: QAston Date: Tue, 14 Jul 2009 18:31:59 +0200 Subject: *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 --- src/game/Unit.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/Unit.cpp') 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 ) -- cgit v1.2.3