aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-08-04 15:32:24 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-11 22:03:16 +0100
commitd176be59b8063eaf47ace47f638b9c68934445e6 (patch)
tree3ce9ed2c608ac23207ae0f46af436405248369fb /src/server/scripts
parenta3384bdc70d239d79dac40b52fcbe076c0474591 (diff)
ScriptedAI/Creature: Fix a bug where a std::chrono overload was counting milliseconds instead of seconds.
(cherry picked from commit 4030e4d780ed60d281c2b0eaff58ed2b40ad7f47)
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp
index 78063b43170..45282eb2919 100644
--- a/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp
+++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp
@@ -93,7 +93,7 @@ public:
void EnterEvadeMode(EvadeReason /*why*/) override
{
if (Creature* midnight = ObjectAccessor::GetCreature(*me, _midnightGUID))
- BossAI::_DespawnAtEvade(10, midnight);
+ BossAI::_DespawnAtEvade(Seconds(10), midnight);
me->DespawnOrUnsummon();
}
@@ -349,7 +349,7 @@ public:
void EnterEvadeMode(EvadeReason /*why*/) override
{
- BossAI::_DespawnAtEvade(10);
+ BossAI::_DespawnAtEvade(Seconds(10));
}
void KilledUnit(Unit* /*victim*/) override