Core/Weather: merged commit 6eb9973947

This commit is contained in:
Ovalord
2018-02-14 15:49:48 +01:00
parent 844450d542
commit dc8f263fc8
12 changed files with 106 additions and 141 deletions

View File

@@ -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);

View File

@@ -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;