Merge branch 'pagefaultgames:main' into main

This commit is contained in:
José Ricardo Fleury Oliveira 2024-05-12 04:32:05 -03:00 committed by GitHub
commit 1b7e1ab763
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -940,7 +940,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
} }
isGrounded(): boolean { 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 { getAttackMoveEffectiveness(source: Pokemon, move: PokemonMove): TypeDamageMultiplier {