diff options
| author | Carbenium <carbenium@outlook.com> | 2020-07-26 00:54:23 +0200 |
|---|---|---|
| committer | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-26 22:21:59 +0200 |
| commit | 5832790428b124876ba48eacaf47806fd10a3c47 (patch) | |
| tree | 81184c3a1efae84addd56231c390711013571ce4 /src/server/scripts/World | |
| parent | fc9e7226c0785fd12b01b724ed3666e6c08dd017 (diff) | |
Scripts/World+Outland+Spells: Use std::chrono overload of Creature::DespawnOrUnsummon
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 0162a1f833b..47729db8281 100644 --- a/src/server/scripts/World/boss_emerald_dragons.cpp +++ b/src/server/scripts/World/boss_emerald_dragons.cpp @@ -442,7 +442,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 c6a138a6de4..9f13d419266 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -914,7 +914,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 5996eb2066c..2c0f85e4ef8 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -2334,7 +2334,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; } @@ -2400,7 +2400,7 @@ class npc_train_wrecker : public CreatureScript break; } me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_DANCE); - me->DespawnOrUnsummon(5 * IN_MILLISECONDS); + me->DespawnOrUnsummon(5s); _nextAction = 0; break; default: |
