Add Psychic Terrain priority block effect and terrain messages

This commit is contained in:
Flashfyre committed 2024-03-18 18:03:13 -04:00
1 parent 47a51c9958
commit aa1e1a480f
4 files changed
+49 -10

No files matched your search

+4
View File
@@ -298,6 +298,10 @@ export class Arena {
return this.weather && !this.weather.isEffectSuppressed(this.scene) && this.weather.isMoveWeatherCancelled(move);
}
isMoveTerrainCancelled(move: Move) {
return this.terrain && this.terrain.isMoveTerrainCancelled(move);
}
getAttackTypeMultiplier(attackType: Type, grounded: boolean): number {
let weatherMultiplier = 1;
if (this.weather && !this.weather.isEffectSuppressed(this.scene))