From 160072ac5ecb4c24512200ad43fd97bd4ee25387 Mon Sep 17 00:00:00 2001 From: Madmadness65 Date: Sat, 30 Mar 2024 12:01:49 -0500 Subject: [PATCH] Implement Hunger Switch ability Aura Wheel still does not change types based on Morpeko's current form, however. --- src/data/ability.ts | 6 ++++-- src/data/pokemon-forms.ts | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 4baa56ad6db..fca675f7640 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2074,7 +2074,7 @@ export function initAbilities() { new Ability(Abilities.WATER_VEIL, "Water Veil", "The Pokémon is covered with a water veil, which prevents the Pokémon from getting a burn.", 3) .attr(StatusEffectImmunityAbAttr, StatusEffect.BURN) .ignorable(), - new Ability(Abilities.MAGNET_PULL, "Magnet Pull", "Prevents Steel-type Pokémon from escaping using its magnetic force.", 3) + new Ability(Abilities.MAGNET_PULL, "Magnet Pull (N)", "Prevents Steel-type Pokémon from escaping using its magnetic force.", 3) /*.attr(ArenaTrapAbAttr) .condition((pokemon: Pokemon) => pokemon.getOpponent()?.isOfType(Type.STEEL))*/, new Ability(Abilities.SOUNDPROOF, "Soundproof", "Soundproofing gives the Pokémon full immunity to all sound-based moves.", 3) @@ -2501,7 +2501,9 @@ export function initAbilities() { new Ability(Abilities.PASTEL_VEIL, "Pastel Veil", "Protects the Pokémon and its ally Pokémon from being poisoned.", 8) .attr(StatusEffectImmunityAbAttr, StatusEffect.POISON) .ignorable(), - new Ability(Abilities.HUNGER_SWITCH, "Hunger Switch (N)", "The Pokémon changes its form, alternating between its Full Belly Mode and Hangry Mode after the end of each turn.", 8), + new Ability(Abilities.HUNGER_SWITCH, "Hunger Switch", "The Pokémon changes its form, alternating between its Full Belly Mode and Hangry Mode after the end of each turn.", 8) + .attr(PostTurnFormChangeAbAttr, p => p.getFormKey ? 0 : 1) + .attr(PostTurnFormChangeAbAttr, p => p.getFormKey ? 1 : 0), new Ability(Abilities.QUICK_DRAW, "Quick Draw (N)", "Enables the Pokémon to move first occasionally.", 8), new Ability(Abilities.UNSEEN_FIST, "Unseen Fist (N)", "If the Pokémon uses moves that make direct contact, it can attack the target even if the target protects itself.", 8), new Ability(Abilities.CURIOUS_MEDICINE, "Curious Medicine (N)", "When the Pokémon enters a battle, it scatters medicine from its shell, which removes all stat changes from allies.", 8), diff --git a/src/data/pokemon-forms.ts b/src/data/pokemon-forms.ts index 805933d283b..62452c64945 100644 --- a/src/data/pokemon-forms.ts +++ b/src/data/pokemon-forms.ts @@ -577,6 +577,10 @@ export const pokemonFormChanges: PokemonFormChanges = { [Species.ALCREMIE]: [ new SpeciesFormChange(Species.ALCREMIE, 'vanilla-cream', SpeciesFormKey.GIGANTAMAX, new SpeciesFormChangeItemTrigger(FormChangeItem.MAX_MUSHROOMS)) ], + [Species.MORPEKO]: [ + new SpeciesFormChange(Species.MORPEKO, 'full-belly', 'hangry', new SpeciesFormChangeManualTrigger(), true), + new SpeciesFormChange(Species.MORPEKO, 'hangry', 'full-belly', new SpeciesFormChangeManualTrigger(), true) + ], [Species.COPPERAJAH]: [ new SpeciesFormChange(Species.COPPERAJAH, '', SpeciesFormKey.GIGANTAMAX, new SpeciesFormChangeItemTrigger(FormChangeItem.MAX_MUSHROOMS)) ],