Jump to content

[fix] sudden death


Auntie Mangos

Recommended Posts

  • 40 years later...

The warrior talent sudden death does not work. The aura is triggered but you cannot use execute on the enemy. This patch fixes this so the warrior can use execute anytime he has the aura active no matter if the foe is already wounded enough.

index 0c80e73..2cd936c 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4475,7 +4475,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_caster->HasAura(52437) && (!m_targets.getUnitTarget() || m_targets.getUnitTarget()->GetHealth() > m_targets.getUnitTarget()->GetMaxHealth()*0.2) )
                        return SPELL_FAILED_BAD_TARGETS;
                }
                else if (m_spellInfo->Id == 51582)          // Rocket Boots Engaged

Link to comment
Share on other sites

I still believe this health check simply must be removed, because Execute requires AURA_STATE_HEALTHLESS_20_PERCENT, so it already fails at aura states checking before even reaching this line.

I'm pretty sure i tried to explain that like two major patches ago... ;)

I don't know if this check really has been necessary when it was added, but it definitely does seem redundant since ages.

Link to comment
Share on other sites

  • 10 months 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