fixed grounded check

pull/235/head
Luc 2024-04-26 11:31:40 -04:00
parent 189b20737d
commit 310ad59def
1 changed files with 1 additions and 1 deletions

View File

@ -2249,7 +2249,7 @@ export class WeatherBallTypeAttr extends VariableMoveTypeAttr {
export class TerrainPulseTypeAttr extends VariableMoveTypeAttr { export class TerrainPulseTypeAttr extends VariableMoveTypeAttr {
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
if(user.isGrounded) if(!user.isGrounded)
return false; return false;
const currentTerrain = user.scene.arena.getTerrainType(); const currentTerrain = user.scene.arena.getTerrainType();