aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/Stratholme
diff options
context:
space:
mode:
authorDanVS <33371360+DanVS@users.noreply.github.com>2018-09-17 16:38:22 +0000
committerShauren <shauren.trinity@gmail.com>2021-11-09 00:26:59 +0100
commit28cb2af1c5dbaf9b3644a7919edc1603f0d75dbf (patch)
tree2d45d4a3d9713307418cc3a5dbef49306d090542 /src/server/scripts/EasternKingdoms/Stratholme
parente8e8e4b9d6ae72615334c5ef5f62d14a77729f55 (diff)
Core/Scripts: Unify Chrono Literals (#22420)
* Unify Chrono Literals * Retire IN_MILLISECONDS * Build fix * Build fix (sequel) * Retire urand() * Edge cases * Build * Whitespaces * More edge cases * Additional cases (cherry picked from commit 5b0f4009df4cde413c92c73467ca9a63e79a772b)
Diffstat (limited to 'src/server/scripts/EasternKingdoms/Stratholme')
-rw-r--r--src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp6
-rw-r--r--src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp16
-rw-r--r--src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp2
3 files changed, 12 insertions, 12 deletions
diff --git a/src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp b/src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp
index d10eea337fe..614be107515 100644
--- a/src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp
+++ b/src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp
@@ -64,7 +64,7 @@ public:
{
_events.ScheduleEvent(EVENT_FROSTBOLT, 1 * IN_MILLISECONDS);
_events.ScheduleEvent(EVENT_ICETOMB, 16 * IN_MILLISECONDS);
- _events.ScheduleEvent(EVENT_DRAINLIFE, 31 * IN_MILLISECONDS);
+ _events.ScheduleEvent(EVENT_DRAINLIFE, 31s);
}
void JustDied(Unit* /*killer*/) override
@@ -95,12 +95,12 @@ public:
case EVENT_ICETOMB:
if (rand32() % 65)
DoCastVictim(SPELL_ICETOMB);
- _events.ScheduleEvent(EVENT_ICETOMB, 28 * IN_MILLISECONDS);
+ _events.ScheduleEvent(EVENT_ICETOMB, 28s);
break;
case EVENT_DRAINLIFE:
if (rand32() % 55)
DoCastVictim(SPELL_DRAINLIFE);
- _events.ScheduleEvent(EVENT_DRAINLIFE, 31 * IN_MILLISECONDS);
+ _events.ScheduleEvent(EVENT_DRAINLIFE, 31s);
break;
default:
break;
diff --git a/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp b/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
index 6612432a076..f2c30abed5f 100644
--- a/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
+++ b/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
@@ -65,10 +65,10 @@ class boss_postmaster_malown : public CreatureScript
void JustEngagedWith(Unit* /*who*/) override
{
- events.ScheduleEvent(EVENT_WAILINGDEAD, 19000); // lasts 6 sec
- events.ScheduleEvent(EVENT_BACKHAND, 8000); // 2 sec stun
- events.ScheduleEvent(EVENT_CURSEOFWEAKNESS, 20000); // lasts 2 mins
- events.ScheduleEvent(EVENT_CURSEOFTONGUES, 22000);
+ events.ScheduleEvent(EVENT_WAILINGDEAD, 19s); // lasts 6 sec
+ events.ScheduleEvent(EVENT_BACKHAND, 8s); // 2 sec stun
+ events.ScheduleEvent(EVENT_CURSEOFWEAKNESS, 20s); // lasts 2 mins
+ events.ScheduleEvent(EVENT_CURSEOFTONGUES, 22s);
events.ScheduleEvent(EVENT_CALLOFTHEGRAVE, 25000);
}
@@ -94,22 +94,22 @@ class boss_postmaster_malown : public CreatureScript
case EVENT_WAILINGDEAD:
if (rand32() % 100 < 65) //65% chance to cast
DoCastVictim(SPELL_WAILINGDEAD, true);
- events.ScheduleEvent(EVENT_WAILINGDEAD, 19000);
+ events.ScheduleEvent(EVENT_WAILINGDEAD, 19s);
break;
case EVENT_BACKHAND:
if (rand32() % 100 < 45) //45% chance to cast
DoCastVictim(SPELL_BACKHAND, true);
- events.ScheduleEvent(EVENT_WAILINGDEAD, 8000);
+ events.ScheduleEvent(EVENT_WAILINGDEAD, 8s);
break;
case EVENT_CURSEOFWEAKNESS:
if (rand32() % 100 < 3) //3% chance to cast
DoCastVictim(SPELL_CURSEOFWEAKNESS, true);
- events.ScheduleEvent(EVENT_WAILINGDEAD, 20000);
+ events.ScheduleEvent(EVENT_WAILINGDEAD, 20s);
break;
case EVENT_CURSEOFTONGUES:
if (rand32() % 100 < 3) //3% chance to cast
DoCastVictim(SPELL_CURSEOFTONGUES, true);
- events.ScheduleEvent(EVENT_WAILINGDEAD, 22000);
+ events.ScheduleEvent(EVENT_WAILINGDEAD, 22s);
break;
case EVENT_CALLOFTHEGRAVE:
if (rand32() % 100 < 5) //5% chance to cast
diff --git a/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp b/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp
index 8214fb489e5..54dfbe4ee72 100644
--- a/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp
+++ b/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp
@@ -359,7 +359,7 @@ class instance_stratholme : public InstanceMapScript
if (data == DONE)
{
- events.ScheduleEvent(EVENT_SLAUGHTER_SQUARE, 60000);
+ events.ScheduleEvent(EVENT_SLAUGHTER_SQUARE, 1min);
TC_LOG_DEBUG("scripts", "Instance Stratholme: Slaugther event will continue in 1 minute.");
}
EncounterState[4] = data;