From 76ceed52a3c4f36b4bafdc087ce381c6cfa71e83 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 2 May 2023 16:58:18 -0400 Subject: [PATCH] Fix levitate ability effect --- src/arena.ts | 2 +- src/data/ability.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arena.ts b/src/arena.ts index 30616ccc8a6..2b3fc4a0fa1 100644 --- a/src/arena.ts +++ b/src/arena.ts @@ -66,7 +66,7 @@ export class Arena { ret = getPokemonSpecies(species); - if (ret.legendary || ret.mythical) { + if (ret.pseudoLegendary || ret.legendary || ret.mythical) { switch (true) { case (ret.baseTotal >= 720): regen = level < 90; diff --git a/src/data/ability.ts b/src/data/ability.ts index 6d082cc3756..46ce2682132 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -866,7 +866,7 @@ export function initAbilities() { new Ability(Abilities.KEEN_EYE, "Keen Eye", "Prevents other POKéMON from lowering accuracy.", 3) .attr(ProtectStatAttr, BattleStat.ACC), new Ability(Abilities.LEVITATE, "Levitate", "Gives immunity to GROUND-type moves.", 3) - .attr(TypeImmunityAbAttr, Type.FLYING, (pokemon: Pokemon) => !pokemon.getTag(BattlerTagType.IGNORE_FLYING)), + .attr(TypeImmunityAbAttr, Type.GROUND, (pokemon: Pokemon) => !pokemon.getTag(BattlerTagType.IGNORE_FLYING)), new Ability(Abilities.LIGHTNING_ROD, "Lightning Rod", "Draws in all ELECTRIC-type moves to up SP. ATK.", 3) .attr(TypeImmunityStatChangeAbAttr, Type.ELECTRIC, BattleStat.SPATK, 1), new Ability(Abilities.LIMBER, "Limber (N)", "The POKéMON is protected from paralysis.", 3),