Scripts/TotT: keep Ozumat's big vehicle as active to make sure the grid remains loaded for the cutscene

This commit is contained in:
Ovahlord
2019-07-31 14:30:56 +02:00
parent b2093c6b65
commit a14bb40a87

View File

@@ -43,6 +43,7 @@ struct npc_tott_ozumat_vehicle_big : public ScriptedAI
void JustAppeared() override
{
me->setActive(true); // ugly but the only safe way for now to keep the grid loaded...
if (_instance->GetData(DATA_CURRENT_EVENT_PROGRESS) < EVENT_INDEX_DEFENSE_SYSTEM_ACTIVATED)
if (Creature* ozumat = DoSummon(NPC_OZUMAT, me->GetPosition()))
me->HandleSpellClick(ozumat, SEAT_TENTACLE_BLOCK);