Core/ScriptedAI: std::chrono-ify DoSpawnCreature

(cherry picked from commit f5076112cb25bff877a450a14fe20172e9044081)
This commit is contained in:
Carbenium
2022-01-23 23:33:04 +01:00
committed by Shauren
parent da438c73e2
commit e660b870e9
22 changed files with 52 additions and 52 deletions
@@ -282,9 +282,9 @@ void ScriptedAI::ForceCombatStopForCreatureEntry(std::vector<uint32> creatureEnt
ForceCombatStopForCreatureEntry(entry, maxSearchRange, samePhase, reset);
}
Creature* ScriptedAI::DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
Creature* ScriptedAI::DoSpawnCreature(uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, Milliseconds despawntime)
{
return me->SummonCreature(entry, me->GetPositionX() + offsetX, me->GetPositionY() + offsetY, me->GetPositionZ() + offsetZ, angle, TempSummonType(type), despawntime);
return me->SummonCreature(entry, me->GetPositionX() + offsetX, me->GetPositionY() + offsetY, me->GetPositionZ() + offsetZ, angle, TempSummonType(type), despawntime.count());
}
bool ScriptedAI::HealthBelowPct(uint32 pct) const