aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-06-18 13:19:09 +0200
committerShauren <shauren.trinity@gmail.com>2012-06-18 13:19:09 +0200
commit2cafa85daacb8e1908953f1e529a87d6f8371dd1 (patch)
tree49a13b70a4270d24149ca57cb8a76fa886ba67d1
parent99381289327a2eb07c0074044e024527f7e56913 (diff)
Scripts/Icecrown Citadel: Minor correction for previous commit
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp11
1 files changed, 9 insertions, 2 deletions
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