From 7b19bea10faa1722fb856eff05adb1363110a28d Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Thu, 24 Dec 2009 13:01:39 +0100 Subject: Fixed spell Spirit Walk. by Ouden --HG-- branch : trunk --- src/game/SpellEffects.cpp | 7 +++++++ src/game/Unit.cpp | 11 +++++++++++ 2 files changed, 18 insertions(+) (limited to 'src/game') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 458bf968312..6b8b31d83b5 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5171,6 +5171,13 @@ void Spell::EffectScriptEffect(uint32 effIndex) unitTarget->RemoveMovementImpairingAuras(); break; } + // Spirit Walk + case 58876: + { + // Removes snares and roots. + unitTarget->RemoveMovementImpairingAuras(); + break; + } // Plant Warmaul Ogre Banner case 32307: { diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 230478dd9ec..f8d71b8db66 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5153,6 +5153,17 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger triggered_spell_id = 34650; break; } + // Spirit Walk + case 58875: + { + // Cast on owner + target = GetOwner(); + if(!target) + return false; + + triggered_spell_id = 58876; + break; + } // Mark of Malice case 33493: { -- cgit v1.2.3