From c9bb6ef80e6c2be25b56977e6c776995d51419db Mon Sep 17 00:00:00 2001 From: Ethan Date: Wed, 1 May 2024 10:02:13 -0400 Subject: [PATCH] Added StatusHealAttr for both Lunar Blessing and Jungle Healing --- src/data/move.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 9329d21c1d4..638789862e7 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -786,6 +786,18 @@ export class HealAttr extends MoveEffectAttr { } } + +export class StatusHealAttr extends HealAttr { + constructor() { + super(); + } + + apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { + user.resetStatus(); + return true; + } +} + export class SacrificialFullRestoreAttr extends SacrificialAttr { constructor() { super(); @@ -5939,8 +5951,8 @@ export function initMoves() { .attr(StatusEffectAttr, StatusEffect.BURN), new StatusMove(Moves.JUNGLE_HEALING, Type.GRASS, -1, 10, -1, 0, 8) .attr(HealAttr, 0.25, true, false) - .target(MoveTarget.USER_AND_ALLIES) - .partial(), + .attr(StatusHealAttr) + .target(MoveTarget.USER_AND_ALLIES), new AttackMove(Moves.WICKED_BLOW, Type.DARK, MoveCategory.PHYSICAL, 75, 100, 5, -1, 0, 8) .attr(CritOnlyAttr) .punchingMove(), @@ -6038,9 +6050,9 @@ export function initMoves() { .target(MoveTarget.ALL_NEAR_ENEMIES), new StatusMove(Moves.LUNAR_BLESSING, Type.PSYCHIC, -1, 5, -1, 0, 8) .attr(HealAttr, 0.25) + .attr(StatusHealAttr) .target(MoveTarget.USER_AND_ALLIES) - .triageMove() - .partial(), + .triageMove(), new SelfStatusMove(Moves.TAKE_HEART, Type.PSYCHIC, -1, 10, -1, 0, 8) .attr(StatChangeAttr, [ BattleStat.SPATK, BattleStat.SPDEF ], 1, true) .partial(),