From d5f82611f54adbe87bd2daa0644e0d5a44591cf4 Mon Sep 17 00:00:00 2001 From: Thomas Huynh Date: Sun, 12 May 2024 00:28:30 -0700 Subject: [PATCH] added battle tag check in isGrounded method (#750) Co-authored-by: unknown --- 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 b2ecd4de3e6..fffe4b68858 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -940,7 +940,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 {