Added getWeatherType for future compatibility checks

This commit is contained in:
EmoUsedHM01 2024-04-14 10:54:57 +01:00 committed by GitHub
parent d1bf3bab63
commit f931da7812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -331,6 +331,10 @@ export class Arena {
return this.terrain?.terrainType || TerrainType.NONE; return this.terrain?.terrainType || TerrainType.NONE;
} }
getWeatherType() : WeatherType {
return this.weather?.weatherType || WeatherType.NONE;
}
getAttackTypeMultiplier(attackType: Type, grounded: boolean): number { getAttackTypeMultiplier(attackType: Type, grounded: boolean): number {
let weatherMultiplier = 1; let weatherMultiplier = 1;
if (this.weather && !this.weather.isEffectSuppressed(this.scene)) if (this.weather && !this.weather.isEffectSuppressed(this.scene))