Use getWeather function

This commit is contained in:
AJ Fontaine 2025-01-07 19:22:47 -05:00
parent 4975513118
commit 654a915a3d

View File

@ -373,8 +373,8 @@ export function getRandomWeatherType(arena: any /* Importing from arena causes a
break; break;
} }
if (arena.biomeType === Biome.TOWN && arena.scene.eventManager.isEventActive() && arena.scene.eventManager.activeEvent()?.weather?.length > 0) { if (arena.biomeType === Biome.TOWN && arena.scene.eventManager.isEventActive()) {
arena.scene.eventManager.activeEvent().weather.map(w => weatherPool.push(w)); arena.scene.eventManager.getWeather()?.map(w => weatherPool.push(w));
} }
if (weatherPool.length > 1) { if (weatherPool.length > 1) {