From 76b2963894833c318632576ac473b778a904b7c2 Mon Sep 17 00:00:00 2001 From: LaukkaE Date: Sun, 12 May 2024 14:28:34 +0300 Subject: [PATCH] fix isGrounded check --- 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 619cedb4ac5..3864afe201b 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 && !!this.getTag(BattlerTagType.GROUNDED); + return !this.isOfType(Type.FLYING, true) && this.hasAbility(Abilities.LEVITATE); } getAttackMoveEffectiveness(source: Pokemon, move: PokemonMove): TypeDamageMultiplier {