Jump to content

[patch] Spirit Walk


Auntie Mangos

Recommended Posts

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

Fixed

Removes all movement impairing effects

for spell http://www.wowhead.com/?spell=58875

For which repository revision was the patch created?

9071

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

http://getmangos.eu/community/viewtopic.php?id=10539

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 5498286..6a32c6c 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -4216,13 +4216,16 @@ void Aura::HandleModTaunt(bool apply, bool Real)
/*********************************************************/
/***                  MODIFY SPEED                     ***/
/*********************************************************/
-void Aura::HandleAuraModIncreaseSpeed(bool /*apply*/, bool Real)
+void Aura::HandleAuraModIncreaseSpeed(bool apply, bool Real)
{
    // all applied/removed only at real aura add/remove
    if(!Real)
        return;

    m_target->UpdateSpeed(MOVE_RUN, true);
+
+    if (apply && GetSpellProto()->Id == 58875)
+        m_target->CastSpell(m_target, 58876, true);
}

void Aura::HandleAuraModIncreaseMountedSpeed(bool apply, bool Real)

Link to comment
Share on other sites

  • 39 years later...
i think you should add triggered spell in Spell::cast

are you sure? spell casted one time by one caster (pet) on two targets because of

Effect: (006) SPELL_EFFECT_APPLY_AURA

Base point = 60

Target A (TARGET_SELF), Target B (No target) <-- THIS

Aura (031) SPELL_AURA_MOD_INCREASE_SPEED, value = 60, misc = 0, miscB = 0, periodic = 0

Effect: (006) SPELL_EFFECT_APPLY_AURA

Base point = 60

Target A (TARGET_MASTER), Target B (No target) <-- AND THIS

Aura (031) SPELL_AURA_MOD_INCREASE_SPEED, value = 60, misc = 0, miscB = 0, periodic = 0

Link to comment
Share on other sites

  • 1 year 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