Core/Weather: merged commit 6eb997394722fcd4b5248646b5abfa185a7ec58f
This commit is contained in:
1 parent
844450d542
commit
dc8f263fc8
12 files changed
+106
-141
No files matched your search
@@ -7529,14 +7529,9 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
|
||||
if (!zone)
|
||||
return;
|
||||
|
||||
if (sWorld->getBoolConfig(CONFIG_WEATHER) && !HasAuraType(SPELL_AURA_FORCE_WEATHER))
|
||||
{
|
||||
if (Weather* weather = WeatherMgr::FindWeather(zone->ID))
|
||||
weather->SendWeatherUpdateToPlayer(this);
|
||||
else if (!WeatherMgr::AddWeather(zone->ID))
|
||||
// send fine weather packet to remove old zone's weather
|
||||
WeatherMgr::SendFineWeatherUpdateToPlayer(this);
|
||||
}
|
||||
if (sWorld->getBoolConfig(CONFIG_WEATHER))
|
||||
GetMap()->GetOrGenerateZoneDefaultWeather(newZone);
|
||||
GetMap()->SendZoneDynamicInfo(newZone, this);
|
||||
|
||||
sScriptMgr->OnPlayerUpdateZone(this, newZone, newArea);
|
||||
|
||||
|
||||
Reference in new issue
Block a user