Psyblade & Rising voltage affected by Electric Terrain

fix
This commit is contained in:
LaukkaE authored and Samuel H committed 2024-04-10 09:12:27 -04:00
1 parent 6078154a87
commit 2a5cfbf758
3 files changed
+11 -4

No files matched your search

+4
View File
@@ -327,6 +327,10 @@ export class Arena {
return this.terrain && this.terrain.isMoveTerrainCancelled(user, move);
}
getTerrainType() : TerrainType {
return this.terrain?.terrainType || TerrainType.NONE;
}
getAttackTypeMultiplier(attackType: Type, grounded: boolean): number {
let weatherMultiplier = 1;
if (this.weather && !this.weather.isEffectSuppressed(this.scene))