From 2cafa85daacb8e1908953f1e529a87d6f8371dd1 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 18 Jun 2012 13:19:09 +0200 Subject: Scripts/Icecrown Citadel: Minor correction for previous commit --- .../scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp index 03d6c0ef919..d2eaab361a1 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp @@ -486,12 +486,19 @@ class TriggerWickedSpirit : public BasicEvent bool Execute(uint64 /*time*/, uint32 /*diff*/) { _owner->CastCustomSpell(SPELL_TRIGGER_VILE_SPIRIT_HEROIC, SPELLVALUE_MAX_TARGETS, 1, NULL, true); - return --_counter > 0; + + if (--_counter) + { + _owner->m_Events.AddEvent(this, _owner->m_Events.CalculateTime(3000)); + return false; + } + + return true; } private: Creature* _owner; - int32 _counter; + uint32 _counter; }; class boss_the_lich_king : public CreatureScript -- cgit v1.2.3