From c6af4acae3cdf5e0c6255fac845f80112194072d Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:40:14 -0500 Subject: [PATCH] Make cud chew consumption not subclass postTurnAbAttr --- src/data/abilities/ability.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index 07897c9f919..10abfaf9940 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -4655,21 +4655,16 @@ export class PostTurnRestoreBerryAbAttr extends PostTurnAbAttr { * Attribute to track and re-trigger last turn's berries at the end of the `BerryPhase`. * Must only be used by Cud Chew! Do _not_ reuse this attribute for anything else * Used by {@linkcode AbilityId.CUD_CHEW}. + * @sealed */ -export class CudChewConsumeBerryAbAttr extends PostTurnAbAttr { +export class CudChewConsumeBerryAbAttr extends AbAttr { /** * @returns `true` if the pokemon ate anything last turn */ override canApply({ pokemon }: AbAttrBaseParams): boolean { - // force ability popup for ability triggers on normal turns. - // Still not used if ability doesn't proc - this.showAbility = true; return !!pokemon.summonData.berriesEatenLast.length; } - /** - * - */ override apply({ pokemon }: AbAttrBaseParams): void { // TODO: Consider respecting the `simulated` flag globalScene.phaseManager.unshiftNew(