Psyblade & Rising voltage affected by Electric Terrain
fix
This commit is contained in:
1 parent
6078154a87
commit
2a5cfbf758
3 files changed
+11
-4
No files matched your search
@@ -327,6 +327,10 @@ export class Arena {
|
||||
return this.terrain && this.terrain.isMoveTerrainCancelled(user, move);
|
||||
}
|
||||
|
||||
getTerrainType() : TerrainType {
|
||||
return this.terrain?.terrainType || TerrainType.NONE;
|
||||
}
|
||||
|
||||
getAttackTypeMultiplier(attackType: Type, grounded: boolean): number {
|
||||
let weatherMultiplier = 1;
|
||||
if (this.weather && !this.weather.isEffectSuppressed(this.scene))
|
||||
|
||||
@@ -734,7 +734,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
isGrounded(): boolean {
|
||||
return !this.isOfType(Type.FLYING, true);
|
||||
return !this.isOfType(Type.FLYING, true) && this.getAbility().id !== Abilities.LEVITATE;
|
||||
}
|
||||
|
||||
getAttackMoveEffectiveness(source: Pokemon, move: PokemonMove): TypeDamageMultiplier {
|
||||
|
||||
Reference in new issue
Block a user