feat: add Uproar message

This commit is contained in:
3ae3ae 2024-07-04 11:55:00 +09:00
parent 3a2d4b93d7
commit cd5a0ef2ff
1 changed files with 11 additions and 0 deletions

View File

@ -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)