From ced74efc52726a35f2e0ed8f7a393dacd3493a7b Mon Sep 17 00:00:00 2001 From: LaukkaE <73663099+LaukkaE@users.noreply.github.com> Date: Sun, 12 May 2024 14:30:18 +0300 Subject: [PATCH] fix isGrounded check (#774) --- 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 619cedb4a..3864afe20 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 {