mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-13 21:49:49 +01:00
Scripts/EasternKingdoms: Use std::chrono overload of Creature::DespawnOrUnsummon
(cherry picked from commit d1a39a2ebf)
This commit is contained in:
@@ -234,7 +234,7 @@ public:
|
||||
case 11:
|
||||
if (Creature* gyth = me->FindNearestCreature(NPC_GYTH, 10.0f, true))
|
||||
gyth->AI()->SetData(1, 1);
|
||||
me->DespawnOrUnsummon(1000, 24h * 7);
|
||||
me->DespawnOrUnsummon(1s, 7_days);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,12 +97,12 @@ public:
|
||||
case NPC_PYROGAURD_EMBERSEER:
|
||||
PyroguardEmberseer = creature->GetGUID();
|
||||
if (GetBossState(DATA_PYROGAURD_EMBERSEER) == DONE)
|
||||
creature->DespawnOrUnsummon(0, 24h * 7);
|
||||
creature->DespawnOrUnsummon(0s, 7_days);
|
||||
break;
|
||||
case NPC_WARCHIEF_REND_BLACKHAND:
|
||||
WarchiefRendBlackhand = creature->GetGUID();
|
||||
if (GetBossState(DATA_GYTH) == DONE)
|
||||
creature->DespawnOrUnsummon(0, 24h * 7);
|
||||
creature->DespawnOrUnsummon(0s, 7_days);
|
||||
break;
|
||||
case NPC_GYTH:
|
||||
Gyth = creature->GetGUID();
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
case NPC_LORD_VICTOR_NEFARIUS:
|
||||
LordVictorNefarius = creature->GetGUID();
|
||||
if (GetBossState(DATA_GYTH) == DONE)
|
||||
creature->DespawnOrUnsummon(0, 24h * 7);
|
||||
creature->DespawnOrUnsummon(0s, 7_days);
|
||||
break;
|
||||
case NPC_SCARSHIELD_INFILTRATOR:
|
||||
ScarshieldInfiltrator = creature->GetGUID();
|
||||
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
break;
|
||||
case EVENT_SUCCESS_2:
|
||||
DoCast(me, SPELL_VAELASTRASZZ_SPAWN);
|
||||
me->DespawnOrUnsummon(1000);
|
||||
me->DespawnOrUnsummon(1s);
|
||||
break;
|
||||
case EVENT_PATH_3:
|
||||
me->GetMotionMaster()->MovePath(NEFARIUS_PATH_3, false);
|
||||
|
||||
@@ -121,7 +121,7 @@ class boss_kirtonos_the_herald : public CreatureScript
|
||||
brazier->ResetDoorOrButton();
|
||||
brazier->SetGoState(GO_STATE_READY);
|
||||
}
|
||||
me->DespawnOrUnsummon(5000);
|
||||
me->DespawnOrUnsummon(5s);
|
||||
}
|
||||
|
||||
void IsSummonedBy(WorldObject* /*summoner*/) override
|
||||
|
||||
@@ -656,7 +656,7 @@ class spell_dark_fiend_skin : public SpellScriptLoader
|
||||
target->AttackStop();
|
||||
target->StopMoving();
|
||||
target->CastSpell(target, SPELL_DARKFIEND_VISUAL, true);
|
||||
target->DespawnOrUnsummon(3000);
|
||||
target->DespawnOrUnsummon(3s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -373,7 +373,7 @@ struct npc_thalorien_dawnseeker : public ScriptedAI
|
||||
if (Creature* thalorien = ObjectAccessor::GetCreature(*me, _thalorienGUID))
|
||||
{
|
||||
thalorien->SetStandState(UNIT_STAND_STATE_KNEEL);
|
||||
thalorien->DespawnOrUnsummon(5 * IN_MILLISECONDS);
|
||||
thalorien->DespawnOrUnsummon(5s);
|
||||
}
|
||||
|
||||
me->AddNpcFlag(UNIT_NPC_FLAG_GOSSIP);
|
||||
|
||||
Reference in New Issue
Block a user