diff options
| author | Carbenium <carbenium@outlook.com> | 2020-07-26 00:54:23 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 23:58:48 +0100 |
| commit | 38695b0943cb7208d87968bc14ac50aac712c5f8 (patch) | |
| tree | 0ac53452ace349bc16cc5b92d9a87e3d450aa50a /src/server/scripts/World | |
| parent | 271462ceec0cec215211e05ab4341b0adc7f39dd (diff) | |
Scripts/World+Outland+Spells: Use std::chrono overload of Creature::DespawnOrUnsummon
(cherry picked from commit 5832790428b124876ba48eacaf47806fd10a3c47)
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/boss_emerald_dragons.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/World/go_scripts.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/World/npcs_special.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/World/boss_emerald_dragons.cpp b/src/server/scripts/World/boss_emerald_dragons.cpp index 01af6b0ee36..cef6e1d8412 100644 --- a/src/server/scripts/World/boss_emerald_dragons.cpp +++ b/src/server/scripts/World/boss_emerald_dragons.cpp @@ -441,7 +441,7 @@ class npc_spirit_shade : public CreatureScript if (moveType == FOLLOW_MOTION_TYPE && data == _summonerGuid.GetCounter()) { me->CastSpell(nullptr, SPELL_DARK_OFFERING, false); - me->DespawnOrUnsummon(1000); + me->DespawnOrUnsummon(1s); } } diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index 64eafbc6776..fa0bb684cc9 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -840,7 +840,7 @@ class go_veil_skith_cage : public GameObjectScript for (Creature* creature : childrenList) { player->KilledMonsterCredit(NPC_CAPTIVE_CHILD, creature->GetGUID()); - creature->DespawnOrUnsummon(5000); + creature->DespawnOrUnsummon(5s); creature->GetMotionMaster()->MovePoint(1, me->GetPositionX() + 5, me->GetPositionY(), me->GetPositionZ()); creature->AI()->Talk(SAY_FREE_0); creature->GetMotionMaster()->Clear(); diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index f626a5b498a..1e626d6319a 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -2231,7 +2231,7 @@ class npc_train_wrecker : public CreatureScript if (GameObject* target = ObjectAccessor::GetGameObject(*me, _target)) return target; me->HandleEmoteCommand(EMOTE_ONESHOT_RUDE); - me->DespawnOrUnsummon(3 * IN_MILLISECONDS); + me->DespawnOrUnsummon(3s); return nullptr; } @@ -2298,7 +2298,7 @@ class npc_train_wrecker : public CreatureScript } me->UpdateEntry(NPC_EXULTING_WIND_UP_TRAIN_WRECKER); me->SetEmoteState(EMOTE_ONESHOT_DANCE); - me->DespawnOrUnsummon(5 * IN_MILLISECONDS); + me->DespawnOrUnsummon(5s); _nextAction = 0; break; default: |
