From b44972ae0de06169eee04f25ced19533cff259e0 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 27 Oct 2009 13:32:25 +0300 Subject: [PATCH] [8745] Undo part of [8617] for restore risilience apply to DoT damage --- src/game/SpellAuras.cpp | 5 +++++ src/shared/revision_nr.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 3bf098f2d..7126a1ad9 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -6382,6 +6382,11 @@ void Aura::PeriodicTick() if (isCrit) cleanDamage.hitOutCome = MELEE_HIT_CRIT; + // Reduce dot damage from resilience for players. + // FIXME: need use SpellDamageBonus instead? + if (m_target->GetTypeId() == TYPEID_PLAYER) + pdamage-=((Player*)m_target)->GetSpellDamageReduction(pdamage); + pCaster->CalcAbsorbResist(m_target, GetSpellSchoolMask(GetSpellProto()), DOT, pdamage, &absorb, &resist); sLog.outDetail("PeriodicTick: %u (TypeId: %u) attacked %u (TypeId: %u) for %u dmg inflicted by %u abs is %u", diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8c8c64add..1b1973540 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8744" + #define REVISION_NR "8745" #endif // __REVISION_NR_H__