Jump to content

[FIX]Sudden Death

Guest ilija

Recommended Posts

I dont know if this is proper fix(didnt test it , sorry for that!)

Spell Sudden Death.

How should it work?

Your melee hits have a 9% chance of allowing the use of Execute regardless of the target's health state. In addition, you keep at least 10 rage after using Execute.

How is it working:

You cant use execute when you have buff, but you get the buff!

diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index b0acd37..2639955 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4494,7 +4494,7 @@ SpellCastResult Spell::CheckCast(bool strict)
                if(m_spellInfo->SpellIconID == 1648)        // Execute
-                    if(!m_targets.getUnitTarget() || m_targets.getUnitTarget()->GetHealth() > m_targets.getUnitTarget()->GetMaxHealth()*0.2)
+                    if(!m_targets.getUnitTarget() || ((m_targets.getUnitTarget()->GetHealth() > m_targets.getUnitTarget()->GetMaxHealth()*0.2) && (!m_caster->HasAura(52437))))
                        return SPELL_FAILED_BAD_TARGETS;
                else if (m_spellInfo->Id == 51582)          // Rocket Boots Engaged

Maybe it isnt working(im quite new to mangos and C++)

EDIT: FORGOT ')' , have updated it now!

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