Jump to content

[9495][patch] Show overheal from HoT in combat log.

Guest qsa

Recommended Posts

What bug does the patch fix? What features does the patch add?

Show overheal from healing over time effects in combat log.

For which repository revision was the patch created?


Who has been writing this patch? Please include either forum user names or email addresses.


diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index ff6d791..e7d0ab1 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6502,10 +6502,9 @@ void Aura::PeriodicTick()
            sLog.outDetail("PeriodicTick: %u (TypeId: %u) heal of %u (TypeId: %u) for %u health inflicted by %u",
                GUID_LOPART(GetCasterGUID()), GuidHigh2TypeId(GUID_HIPART(GetCasterGUID())), m_target->GetGUIDLow(), m_target->GetTypeId(), pdamage, GetId());

-            SpellPeriodicAuraLogInfo pInfo(this, pdamage, 0, 0, 0, 0.0f, isCrit);
-            m_target->SendPeriodicAuraLog(&pInfo);
            int32 gain = m_target->ModifyHealth(pdamage);
+            SpellPeriodicAuraLogInfo pInfo(this, pdamage, (pdamage - gain), 0, 0, 0.0f, isCrit);
+            m_target->SendPeriodicAuraLog(&pInfo);

            // add HoTs to amount healed in bgs
            if( pCaster->GetTypeId() == TYPEID_PLAYER )

Link to comment
Share on other sites

  • 5 months later...

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use