Jump to content

[fix]Improved Barkskin


Auntie Mangos

Recommended Posts

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

fixes Improved Barkskin armor add in travel/no form

For which repository revision was the patch created?

9292

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 2cc5280..4134766 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5867,6 +5867,10 @@ void Aura::HandleShapeshiftBoosts(bool apply)
            if (form == FORM_CAT && ((Player*)m_target)->HasAura(52610))
                m_target->CastSpell(m_target, 62071, true);

+            // Improved Barkskin
+            if (form != FORM_TRAVEL)
+                m_target->RemoveAurasDueToSpell(66530);
+
            // Improved Moonkin Form
            if (form == FORM_MOONKIN)
            {
@@ -5933,6 +5937,10 @@ void Aura::HandleShapeshiftBoosts(bool apply)
            else
                ++itr;
        }
+        
+        // Improved Barkskin
+        if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_DRUID && form != FORM_TRAVEL)
+            m_target->CastSpell(m_target, 66530, true);
    }
}

@@ -6139,6 +6147,14 @@ void Aura::HandleSpellSpecificBoosts(bool apply)
            }
            break;
        }
+        case SPELLFAMILY_DRUID:
+        {
+            if (GetId() == 63410 || GetId() == 63411)        // Improved Barkskin
+                spellId1 = 66530;
+            else
+                return;
+            break;
+        }
        case SPELLFAMILY_ROGUE:
            // Sprint (skip non player casted spells by category)
            if (GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000000040) && GetSpellProto()->Category == 44)

depends on http://getmangos.eu/community/showthread.php?12454-[fix]HandleSpellSpecificBoosts-passive-auras-remove do not use without

Link to comment
Share on other sites

  • 40 years later...
  • 2 weeks later...

t's not working

MaNGOS/0.15.0 (* * Revision 9110 - *) for Linux_x64 (little-endian)

Using script library: ScriptDev2 (for MaNGOS 8759+) Revision * * * (Unix)

Using World DB: YTDB_0.10.7_R527_MaNGOS_R9112_SD2_R1540_ACID_R301_RuDB_R34.4

Using creature EventAI: ACID 3.0.0 - Full Release for Mangos

Any idea?

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
  • 1 month 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