Jump to content

[fix]HandleSpellSpecificBoosts&passive auras remove


Guest laise

Recommended Posts

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

HandleSpellSpecificBoosts wasn't called when passive aura got removed

For which repository revision was the patch created?

9311

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/SpellAuras.cpp b/src/game/SpellAuras.cpp
index f4b98c1..e011173 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1110,11 +1110,11 @@ bool Aura::_RemoveAura()

    uint8 slot = GetAuraSlot();

-    if(slot >= MAX_AURAS)                                   // slot not set
-        return false;
+    if(slot >= MAX_AURAS)                                   // passive auras don't need further checks
+        return true;

    if(m_target->GetVisibleAura(slot) == 0)
-        return false;
+        return true;

    bool lastaura = true;

Link to comment
Share on other sites

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