feat: add Uproar message
This commit is contained in:
parent
3a2d4b93d7
commit
cd5a0ef2ff
|
@ -3911,6 +3911,16 @@ export const frenzyMissFunc: UserMoveConditionFunc = (user: Pokemon, move: Move)
|
||||||
return true;
|
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 {
|
export class AddBattlerTagAttr extends MoveEffectAttr {
|
||||||
public tagType: BattlerTagType;
|
public tagType: BattlerTagType;
|
||||||
public turnCountMin: integer;
|
public turnCountMin: integer;
|
||||||
|
@ -6344,6 +6354,7 @@ export function initMoves() {
|
||||||
.attr(FlinchAttr)
|
.attr(FlinchAttr)
|
||||||
.condition(new FirstMoveCondition()),
|
.condition(new FirstMoveCondition()),
|
||||||
new AttackMove(Moves.UPROAR, Type.NORMAL, MoveCategory.SPECIAL, 90, 100, 10, -1, 0, 3)
|
new AttackMove(Moves.UPROAR, Type.NORMAL, MoveCategory.SPECIAL, 90, 100, 10, -1, 0, 3)
|
||||||
|
.attr(UproarMessage)
|
||||||
.attr(FrenzyAttr, 3, 3)
|
.attr(FrenzyAttr, 3, 3)
|
||||||
.attr(NoEffectAttr, frenzyMissFunc)
|
.attr(NoEffectAttr, frenzyMissFunc)
|
||||||
.attr(MissEffectAttr, frenzyMissFunc)
|
.attr(MissEffectAttr, frenzyMissFunc)
|
||||||
|
|
Loading…
Reference in New Issue