mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Scripts/LCT: fixed a logic mistake in Wind Tunnel summon logics
This commit is contained in:
@@ -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