added battle tag check in isGrounded method

pull/750/head
unknown 2024-05-11 12:29:07 -07:00
parent 3f9158083e
commit abbaf4e22f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {