Psyblade & Rising voltage affected by Electric Terrain

fix
This commit is contained in:
LaukkaE authored and Samuel H committed 2024-04-10 09:12:27 -04:00
1 parent 6078154a87
commit 2a5cfbf758
3 files changed
+11 -4

No files matched your search

+4
View File
@@ -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))
+1 -1
View File
@@ -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 {