From abbaf4e22feb85e31c7e060a7c2ee2b303791db5 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 11 May 2024 12:29:07 -0700 Subject: [PATCH] added battle tag check in isGrounded method --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index e11a0503241..767e3d3e5fd 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -899,7 +899,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } isGrounded(): boolean { - return !this.isOfType(Type.FLYING, true) && this.getAbility().id !== Abilities.LEVITATE; + return !this.isOfType(Type.FLYING, true) && this.getAbility().id !== Abilities.LEVITATE && !!this.getTag(BattlerTagType.GROUNDED); } getAttackMoveEffectiveness(source: Pokemon, move: PokemonMove): TypeDamageMultiplier {