Jump to content

[patch][6009] Double Dmg In Combat Log Correction For Mind Blast, Searing Pain And Earth Shock


Recommended Posts

Posted

What bug does the patch fix?

Mind Blast, Searing Pain and Earth Shock combat log shows a value double of dmg done to enemy. And this double damage is used in the future, such as for the calculation of hp obtained by Vampiric Embrace.

For which SubVersion revision was the patch created?

6007

Is there a thread in the bug report section?

http://getmangos.eu/community/viewtopic.p...p;hl=mind+blast

Who has been writing this patch?

Ultron

Index: Unit.cpp
===================================================================
--- Unit.cpp                (revision 6007)
+++ Unit.cpp                (working copy)
@@ -776,8 +776,9 @@
                                if (pVictim->GetTypeId() != TYPEID_PLAYER)
                                {
                                                if(spellProto && IsDamageToThreatSpell(spellProto))
-                                                                damage *= 2;
-                                                pVictim->AddThreat(this, damage, damageSchoolMask, spellProto);
+                                                                pVictim->AddThreat(this, damage*2, damageSchoolMask, spellProto);
+                                                else
+                                                                pVictim->AddThreat(this, damage, damageSchoolMask, spellProto);
                                }
                                else                                                                                                                                                                                                // victim is a player
                                {

http://filebeam.com/67f5c9fa87b1dd2bae30a8a7ae368176

  • 38 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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