Jump to content

[fix][6625] Periodic Leech


Guest thenecromancer

Recommended Posts

SendHealSpellLog should send gain instead of new_damage * multiplier, otherwise it shows misleading numbers.

Index: game/SpellAuras.cpp
===================================================================
--- game/SpellAuras.cpp        (revision 6623)
+++ game/SpellAuras.cpp        (working copy)
@@ -5735,10 +5735,10 @@

                        int32 gain = pCaster->SpellHealingBonus(spellProto, uint32(new_damage * multiplier), DOT, pCaster);

-                        gain = pCaster->ModifyHealth(gain);
-                        pCaster->getHostilRefManager().threatAssist(pCaster, float(gain) * 0.5f, spellProto);
+                        float realGain = float(pCaster->ModifyHealth(gain));
+                        pCaster->getHostilRefManager().threatAssist(pCaster, realGain * 0.5f, spellProto);

-                        pCaster->SendHealSpellLog(pCaster, spellProto->Id, uint32(new_damage * multiplier));
+                        pCaster->SendHealSpellLog(pCaster, spellProto->Id, uint32(gain));
                        break;
                }
                case SPELL_AURA_PERIODIC_HEAL:

Link to comment
Share on other sites

×
×
  • 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