From c59dac48ff39e1427f6ca06917f2f2695d05ee21 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sun, 19 Jul 2009 11:16:21 +0200 Subject: [PATCH] [8208] Add part support for spell 33525. Also let spell 33652 trigger when aura from 33572 reach full effect. Signed-off-by: NoFantasy --- src/game/SpellAuras.cpp | 16 +++++++++++++++- src/shared/revision_nr.h | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index fe7f8a006..b5b48d305 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1992,6 +1992,10 @@ void Aura::TriggerSpell() caster->CastCustomSpell(target, trigger_spell_id, &m_modifier.m_amount, NULL, NULL, true, NULL, this); return; } + // Ground Slam + case 33525: + target->CastSpell(target, trigger_spell_id, true); + return; } } @@ -3915,12 +3919,22 @@ void Aura::HandleAuraModIncreaseSwimSpeed(bool /*apply*/, bool Real) m_target->UpdateSpeed(MOVE_SWIM, true); } -void Aura::HandleAuraModDecreaseSpeed(bool /*apply*/, bool Real) +void Aura::HandleAuraModDecreaseSpeed(bool apply, bool Real) { // all applied/removed only at real aura add/remove if(!Real) return; + if (apply) + { + // Gronn Lord's Grasp, becomes stoned + if (GetId() == 33572) + { + if (GetStackAmount() >= 5 && !m_target->HasAura(33652)) + m_target->CastSpell(m_target, 33652, true); + } + } + m_target->UpdateSpeed(MOVE_RUN, true); m_target->UpdateSpeed(MOVE_SWIM, true); m_target->UpdateSpeed(MOVE_FLIGHT, true); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index bf9ac6deb..cc2adcea6 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8207" + #define REVISION_NR "8208" #endif // __REVISION_NR_H__