Jump to content

[bug+fix][[Mangos-0.12] impossible to re-stealth after Faery Fire


Recommended Posts

Posted

Hi, I don't know if the bug is general, but I got it after the [Work vs Auras] commit.

When a rogue got the Feary Fire debuff applyied, he can no longuer stealth even after the bebuff is gone (the stealth icon stays grey). The only solution was to clear the client cache and relog.

So here is my fix for this probelm. I guess there may be a better solution, but it's working.

diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 2a3d2de..792793d 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1104,6 +1104,11 @@ bool Aura::_RemoveAura()
                m_target->ModifyAuraState(AURA_STATE_DEADLY_POISON,false);
        }

+
+        // Faerie Fire (druid versions)
+        if (m_spellProto->SpellFamilyName == SPELLFAMILY_DRUID && m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000000400))
+            m_target->ModifyAuraState(AURA_STATE_FAERIE_FIRE, false);
+
        // reset cooldown state for spells
        if(caster && caster->GetTypeId() == TYPEID_PLAYER)
        {

Maybe this can be useful if anyone has the same bug.

EDIT : It should be fixed in http://github.com/mangos/mangos/commit/2177a4d340567ee1211a8fcc6305d7f9c82870ad so nevermind ^_^

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