mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/CreatureAI: std::chrono-ify DoSummon* methods
(cherry picked from commit 1245833cdd)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user