Scripts/EasternKingdoms: Use std::chrono overload of Creature::DespawnOrUnsummon

(cherry picked from commit d1a39a2ebf)
This commit is contained in:
Carbenium
2020-07-26 00:52:19 +02:00
committed by Shauren
parent cacdb57c9c
commit 58e1c091a2
6 changed files with 8 additions and 8 deletions

View File

@@ -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;
}
}

View File

@@ -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();

View File

@@ -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);

View File

@@ -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

View File

@@ -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);
}
}

View File

@@ -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);