mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-02 13:42:19 +02:00
Use getWeather function
This commit is contained in:
parent
4975513118
commit
654a915a3d
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user