mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8745] Undo part of [8617] for restore risilience apply to DoT damage
This commit is contained in:
parent
190c5e6338
commit
b44972ae0d
2 changed files with 6 additions and 1 deletions
|
|
@ -6382,6 +6382,11 @@ void Aura::PeriodicTick()
|
||||||
if (isCrit)
|
if (isCrit)
|
||||||
cleanDamage.hitOutCome = MELEE_HIT_CRIT;
|
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);
|
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",
|
sLog.outDetail("PeriodicTick: %u (TypeId: %u) attacked %u (TypeId: %u) for %u dmg inflicted by %u abs is %u",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8744"
|
#define REVISION_NR "8745"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue