Changes to display splash

This commit is contained in:
Jacky Chen 2025-02-15 16:18:09 -05:00
parent 8555ef7cb7
commit 986675e537
3 changed files with 14 additions and 0 deletions

View File

@ -1646,6 +1646,16 @@ export class CenterOfAttentionTag extends BattlerTag {
}
}
export class SplashTag extends BattlerTag {
constructor() {
super(BattlerTagType.SPLASH, BattlerTagLapseType.TURN_END, 1, Moves.SPLASH, undefined, false);
}
onAdd(pokemon: Pokemon): void {
super.onAdd(pokemon);
globalScene.queueMessage(i18next.t("battlerTags:splashLapse"));
}
}
export class AbilityBattlerTag extends BattlerTag {
public ability: Abilities;
@ -3000,6 +3010,8 @@ export class MagicCoatTag extends BattlerTag {
*/
export function getBattlerTag(tagType: BattlerTagType, turnCount: number, sourceMove: Moves, sourceId: number): BattlerTag {
switch (tagType) {
case BattlerTagType.SPLASH:
return new SplashTag();
case BattlerTagType.RECHARGING:
return new RechargingTag(sourceMove);
case BattlerTagType.BEAK_BLAST_CHARGING:

View File

@ -8791,6 +8791,7 @@ export function initMoves() {
new AttackMove(Moves.PSYWAVE, Type.PSYCHIC, MoveCategory.SPECIAL, -1, 100, 15, -1, 0, 1)
.attr(RandomLevelDamageAttr),
new SelfStatusMove(Moves.SPLASH, Type.NORMAL, -1, 40, -1, 0, 1)
.attr(AddBattlerTagAttr, BattlerTagType.SPLASH)
.condition(failOnGravityCondition),
new SelfStatusMove(Moves.ACID_ARMOR, Type.POISON, -1, 20, -1, 0, 1)
.attr(StatStageChangeAttr, [ Stat.DEF ], 2, true),

View File

@ -95,4 +95,5 @@ export enum BattlerTagType {
ENDURE_TOKEN = "ENDURE_TOKEN",
POWDER = "POWDER",
MAGIC_COAT = "MAGIC_COAT",
SPLASH = "SPLASH"
}