From 6fd41ae50e5f988473f86ad8370b60a1e29eac5f Mon Sep 17 00:00:00 2001 From: Spp- Date: Thu, 30 Jun 2011 14:24:56 +0200 Subject: Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts --- src/server/scripts/EasternKingdoms/duskwood.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/scripts/EasternKingdoms/duskwood.cpp') diff --git a/src/server/scripts/EasternKingdoms/duskwood.cpp b/src/server/scripts/EasternKingdoms/duskwood.cpp index 6a550d55a0b..9e2fd198df2 100644 --- a/src/server/scripts/EasternKingdoms/duskwood.cpp +++ b/src/server/scripts/EasternKingdoms/duskwood.cpp @@ -75,7 +75,7 @@ public: struct boss_twilight_corrupterAI : public ScriptedAI { - boss_twilight_corrupterAI(Creature *c) : ScriptedAI(c) {} + boss_twilight_corrupterAI(Creature* c) : ScriptedAI(c) {} uint32 SoulCorruption_Timer; uint32 CreatureOfNightmare_Timer; @@ -116,6 +116,7 @@ public: DoCast(me->getVictim(), SPELL_SOUL_CORRUPTION); SoulCorruption_Timer = rand()%4000+15000; //gotta confirm Timers } else SoulCorruption_Timer-=diff; + if (CreatureOfNightmare_Timer <= diff) { DoCast(me->getVictim(), SPELL_CREATURE_OF_NIGHTMARE); -- cgit v1.2.3