mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-25 01:32:21 +02:00
Changes to display splash
This commit is contained in:
parent
8555ef7cb7
commit
986675e537
@ -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:
|
||||
|
@ -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),
|
||||
|
@ -95,4 +95,5 @@ export enum BattlerTagType {
|
||||
ENDURE_TOKEN = "ENDURE_TOKEN",
|
||||
POWDER = "POWDER",
|
||||
MAGIC_COAT = "MAGIC_COAT",
|
||||
SPLASH = "SPLASH"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user