Scripts/LCT: fixed a logic mistake in Wind Tunnel summon logics
This commit is contained in:
1 parent
e832f056ca
commit
a2c187ddbb
1 file changed
+12
-8
+12
-8
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user