mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[10767] Show <overkill> value in combat logs.
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
06e8d8c0ea
commit
272fa74854
4 changed files with 18 additions and 12 deletions
|
|
@ -6569,7 +6569,8 @@ void Aura::PeriodicTick()
|
|||
|
||||
pdamage = (pdamage <= absorb + resist) ? 0 : (pdamage - absorb - resist);
|
||||
|
||||
SpellPeriodicAuraLogInfo pInfo(this, pdamage, 0, absorb, resist, 0.0f, isCrit);
|
||||
uint32 overkill = pdamage > target->GetHealth() ? pdamage - target->GetHealth() : 0;
|
||||
SpellPeriodicAuraLogInfo pInfo(this, pdamage, overkill, absorb, resist, 0.0f, isCrit);
|
||||
target->SendPeriodicAuraLog(&pInfo);
|
||||
|
||||
if (pdamage)
|
||||
|
|
@ -6648,9 +6649,6 @@ void Aura::PeriodicTick()
|
|||
|
||||
target->CalculateDamageAbsorbAndResist(pCaster, GetSpellSchoolMask(spellProto), DOT, pdamage, &absorb, &resist, !(spellProto->AttributesEx2 & SPELL_ATTR_EX2_CANT_REFLECTED));
|
||||
|
||||
if(target->GetHealth() < pdamage)
|
||||
pdamage = uint32(target->GetHealth());
|
||||
|
||||
DETAIL_FILTER_LOG(LOG_FILTER_PERIODIC_AFFECTS, "PeriodicTick: %s health leech of %s for %u dmg inflicted by %u abs is %u",
|
||||
GetCasterGuid().GetString().c_str(), target->GetObjectGuid().GetString().c_str(), pdamage, GetId(),absorb);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue