Scripts/LCT: fixed a logic mistake in Wind Tunnel summon logics

This commit is contained in:
Ovahlord
2018-05-28 16:25:45 +02:00
parent e832f056ca
commit a2c187ddbb

View File

@@ -88,14 +88,6 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
void Initialize()
{
heroicAughSpawned = false;
if (IsSiamatEnabled())
{
if (Creature* siamat = GetCreature(DATA_SIAMAT))
siamat->setActive(true);
instance->SetZoneWeather(ZONE_ID_LOST_CITY, WEATHER_STATE_HEAVY_RAIN, 1.0f);
instance->SummonCreatureGroup(SUMMON_GROUP_WIND_TUNNEL);
}
}
void OnCreatureCreate(Creature* creature) override
@@ -253,6 +245,18 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
}
}
void ReadSaveDataMore(std::istringstream& /*data*/) override
{
if (IsSiamatEnabled())
{
if (Creature* siamat = GetCreature(DATA_SIAMAT))
siamat->setActive(true);
instance->SetZoneWeather(ZONE_ID_LOST_CITY, WEATHER_STATE_HEAVY_RAIN, 1.0f);
instance->SummonCreatureGroup(SUMMON_GROUP_WIND_TUNNEL);
}
}
protected:
EventMap events;
bool heroicAughSpawned;