Jump to content

[Bug] Nitro Boosts - Engineering


Guest Grandres

Recommended Posts

UDB 0.11.6 (387) for MaNGOS 9310 with SD2 SQL for rev. 1566.

Nitro Boosts doesn't work correct.

How it's working: We can use Nitro Boosts when we hold wsg's flag and we don't drop it.

How it should work: We drop wsg's flag when we use Nitro Boosts.

Nitro Boosts now make you drop PVP flags when used, as well as preventing you from picking them up while the effect is active.

source: http://www.worldofwarcraft.com/patchnotes/patch3p10.html

Link to comment
Share on other sites

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index d173c23..f9587df 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1396,6 +1396,15 @@ void Spell::EffectDummy(uint32 i)
                        m_caster->CastSpell(m_caster, 54861, true, m_CastItem);
                    else                                    // Knocked Up   - backfire 5%
                        m_caster->CastSpell(m_caster, 46014, true, m_CastItem);
+
+                    if (m_caster->GetTypeId() == TYPEID_PLAYER)
+                    {
+                        Player* pPlayer = ((Player*)m_caster);
+                        // Nitro Boosts - drop BG flag
+                        if(pPlayer->InBattleGround() && (pPlayer->HasAura(23335) || pPlayer->HasAura(23333) || pPlayer->HasAura(34976)))
+                            if(BattleGround *bg = pPlayer->GetBattleGround())
+                                bg->EventPlayerDroppedFlag(pPlayer);
+                    }
                    return;
                case 58418:                                 // Portal to Orgrimmar
                case 58420:                                 // Portal to Stormwind

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • 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