Jump to content

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

Auntie Mangos

Recommended Posts

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?


Is there a thread in the bug report section?


Who has been writing this patch?


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


Link to comment
Share on other sites

  • 38 years later...
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