mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Weather: merged commit 6eb9973947
This commit is contained in:
@@ -1412,10 +1412,7 @@ public:
|
||||
Player* player = handler->GetSession()->GetPlayer();
|
||||
uint32 zoneid = player->GetZoneId();
|
||||
|
||||
Weather* weather = WeatherMgr::FindWeather(zoneid);
|
||||
|
||||
if (!weather)
|
||||
weather = WeatherMgr::AddWeather(zoneid);
|
||||
Weather* weather = player->GetMap()->GetOrGenerateZoneDefaultWeather(zoneid);
|
||||
if (!weather)
|
||||
{
|
||||
handler->SendSysMessage(LANG_NO_WEATHER);
|
||||
|
||||
@@ -136,6 +136,8 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
|
||||
if (state == IN_PROGRESS && !CheckSiamatsPlatform())
|
||||
if (Creature* siamat = GetCreature(DATA_SIAMAT))
|
||||
siamat->AI()->EnterEvadeMode();
|
||||
if (state == DONE)
|
||||
instance->SetZoneWeather(ZONE_ID_LOST_CITY, WEATHER_STATE_FOG, 1.0f);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user