From cd5a0ef2ff2e1e26ca1c87d0e2e40382c273b92b Mon Sep 17 00:00:00 2001 From: 3ae3ae Date: Thu, 4 Jul 2024 11:55:00 +0900 Subject: [PATCH] feat: add Uproar message --- src/data/move.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/data/move.ts b/src/data/move.ts index 2d038792992..db2728a8594 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -3911,6 +3911,16 @@ export const frenzyMissFunc: UserMoveConditionFunc = (user: Pokemon, move: Move) return true; }; +export class UproarMessage extends MoveEffectAttr { + constructor() { + super(); + } + apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { + user.scene.queueMessage(getPokemonMessage(user, " caused\nan uproar!")); + return true; + } +} + export class AddBattlerTagAttr extends MoveEffectAttr { public tagType: BattlerTagType; public turnCountMin: integer; @@ -6344,6 +6354,7 @@ export function initMoves() { .attr(FlinchAttr) .condition(new FirstMoveCondition()), new AttackMove(Moves.UPROAR, Type.NORMAL, MoveCategory.SPECIAL, 90, 100, 10, -1, 0, 3) + .attr(UproarMessage) .attr(FrenzyAttr, 3, 3) .attr(NoEffectAttr, frenzyMissFunc) .attr(MissEffectAttr, frenzyMissFunc)