Core/CreatureAI: std::chrono-ify DoSummon* methods

(cherry picked from commit 1245833cdd)
This commit is contained in:
Carbenium
2020-07-28 00:09:50 +02:00
committed by Shauren
parent 10e3016e85
commit b3f2ff97ff
18 changed files with 42 additions and 42 deletions

View File

@@ -414,7 +414,7 @@ struct npc_felblood_kaelthas_phoenix : public ScriptedAI
me->AddUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
DoCastSelf(SPELL_EMBER_BLAST);
// DoCastSelf(SPELL_SUMMON_PHOENIX_EGG); -- We do a manual summon for now. Feel free to move it to spelleffect_dbc
if (Creature* egg = DoSummon(NPC_PHOENIX_EGG, me->GetPosition(), 0))
if (Creature* egg = DoSummon(NPC_PHOENIX_EGG, me->GetPosition(), 0s))
{
if (Creature* kaelthas = _instance->GetCreature(DATA_KAELTHAS_SUNSTRIDER))
{

View File

@@ -256,7 +256,7 @@ public:
{
//100%, 50%, 33%, 25% chance to spawn
if (urand(1, i) == 1)
DoSummon(NPC_RESTLESS, me, 20.0f, 600000);
DoSummon(NPC_RESTLESS, me, 20.0f, 10min);
}
}
}

View File

@@ -109,7 +109,7 @@ public:
{
const Position src = {147.927444f, -3851.513428f, 130.893f, 0};
Position dst = me->GetRandomPoint(src, 7.0f);
DoSummon(NPC_MARAUDING_OWL, dst, 25000, TEMPSUMMON_CORPSE_TIMED_DESPAWN);
DoSummon(NPC_MARAUDING_OWL, dst, 25s, TEMPSUMMON_CORPSE_TIMED_DESPAWN);
}
break;
case 44:

View File

@@ -219,7 +219,7 @@ public:
}
else
{
DoSummon(NPC_HIGHBORNE_BUNNY, me, 10.0f, 3000, TEMPSUMMON_TIMED_DESPAWN);
DoSummon(NPC_HIGHBORNE_BUNNY, me, 10.0f, 3s, TEMPSUMMON_TIMED_DESPAWN);
_events.ScheduleEvent(EVENT_LAMENT_OF_THE_HIGHBORN, 2s);
}
break;