fix(Scripts/SunwellPlateau): Fix Felmyst death event (#21425)

This commit is contained in:
Andrew
2025-02-13 07:38:47 -03:00
committed by GitHub
parent 75388c7538
commit 98a8a1306a
5 changed files with 53 additions and 42 deletions

View File

@@ -79,7 +79,10 @@ public:
scheduler.Schedule(1min, 1min, DATA_KALECGOS,[this](TaskContext)
{
if (Creature* kalecgos = instance->SummonCreature(NPC_KALECGOS, KalecgosSpawnPos))
{
kalecgos->GetMotionMaster()->MovePath(PATH_KALECGOS_FLIGHT, false);
kalecgos->AI()->Talk(SAY_KALECGOS_SPAWN);
}
});
}
}

View File

@@ -69,6 +69,11 @@ enum MovementData
PATH_KALECGOS_FLIGHT = 248440
};
enum CreatureTexts
{
SAY_KALECGOS_SPAWN = 0
};
template <class AI, class T>
inline AI* GetMagistersTerraceAI(T* obj)
{