aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/Stratholme
diff options
context:
space:
mode:
authorPeter Keresztes Schmidt <carbenium@outlook.com>2020-07-14 19:10:30 +0200
committerGitHub <noreply@github.com>2020-07-14 19:10:30 +0200
commit5ef576d223db0ac019bd803a07976cdc549a26ac (patch)
treeb9d4193bc6849a24628e85bde94e90a875772aca /src/server/scripts/EasternKingdoms/Stratholme
parentac27c922d1ac0cbae98e98a3f560484dece75604 (diff)
Scripts/EasternKingdoms: Use std::chrono::duration overloads of EventMap (#25019)
Contributes to #25012
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.cpp4
-rw-r--r--src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp2
3 files changed, 6 insertions, 6 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 614be107515..8aa0f5cb5d2 100644
--- a/src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp
+++ b/src/server/scripts/EasternKingdoms/Stratholme/boss_maleki_the_pallid.cpp
@@ -62,8 +62,8 @@ public:
void JustEngagedWith(Unit* /*who*/) override
{
- _events.ScheduleEvent(EVENT_FROSTBOLT, 1 * IN_MILLISECONDS);
- _events.ScheduleEvent(EVENT_ICETOMB, 16 * IN_MILLISECONDS);
+ _events.ScheduleEvent(EVENT_FROSTBOLT, 1s);
+ _events.ScheduleEvent(EVENT_ICETOMB, 16s);
_events.ScheduleEvent(EVENT_DRAINLIFE, 31s);
}
@@ -90,7 +90,7 @@ public:
case EVENT_FROSTBOLT:
if (rand32() % 90)
DoCastVictim(SPELL_FROSTBOLT);
- _events.ScheduleEvent(EVENT_FROSTBOLT, 3.5 * IN_MILLISECONDS);
+ _events.ScheduleEvent(EVENT_FROSTBOLT, 3500ms);
break;
case EVENT_ICETOMB:
if (rand32() % 65)
diff --git a/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp b/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
index f2c30abed5f..349af762e8e 100644
--- a/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
+++ b/src/server/scripts/EasternKingdoms/Stratholme/boss_postmaster_malown.cpp
@@ -69,7 +69,7 @@ class boss_postmaster_malown : public CreatureScript
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);
+ events.ScheduleEvent(EVENT_CALLOFTHEGRAVE, 25s);
}
void KilledUnit(Unit* /*victim*/) override
@@ -114,7 +114,7 @@ class boss_postmaster_malown : public CreatureScript
case EVENT_CALLOFTHEGRAVE:
if (rand32() % 100 < 5) //5% chance to cast
DoCastVictim(SPELL_CALLOFTHEGRAVE, true);
- events.ScheduleEvent(EVENT_WAILINGDEAD, 25000);
+ events.ScheduleEvent(EVENT_WAILINGDEAD, 25s);
break;
default:
break;
diff --git a/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp b/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp
index bd53cb02a2d..d7c80cd9090 100644
--- a/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp
+++ b/src/server/scripts/EasternKingdoms/Stratholme/instance_stratholme.cpp
@@ -256,7 +256,7 @@ class instance_stratholme : public InstanceMapScript
if (EncounterState[0] == IN_PROGRESS || EncounterState[0] == FAIL)
break;
EncounterState[0] = data;
- events.ScheduleEvent(EVENT_BARON_RUN, 2700000);
+ events.ScheduleEvent(EVENT_BARON_RUN, 45min);
TC_LOG_DEBUG("scripts", "Instance Stratholme: Baron run in progress.");
break;
case FAIL: