Jump to content

[9369][fix]Heart Strike secondary target


Recommended Posts

Posted

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

fixes weapon damage percent for secondary target of Heart Strike

For which repository revision was the patch created?

9362

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

haven't seen any

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

me

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index ee667d6..790a05e 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -4773,6 +4773,11 @@ void Spell::EffectWeaponDmg(uint32 i)

                    totalDamagePercentMod *= 1.0f + bonus;
                }
+
+                // Heart Strike secondary target
+                if (m_spellInfo->SpellIconID == 3145)
+                    if (m_targets.getUnitTarget() != unitTarget)
+                        weaponDamagePercentMod /= 2.0f;
            }
            // Glyph of Blood Strike
            if( m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000400000) &&

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