add PowerTrickTag

This commit is contained in:
cadi 2024-06-27 18:53:07 +09:00
parent 3e5ef3e3fb
commit 0839df5097
2 changed files with 10 additions and 1 deletions

View File

@ -1529,6 +1529,12 @@ export class IceFaceTag extends BattlerTag {
} }
} }
export class PowerTrickTag extends BattlerTag {
constructor(sourceMove: Moves) {
super(BattlerTagType.POWER_TRICK, BattlerTagLapseType.CUSTOM, 1, sourceMove);
}
}
export function getBattlerTag(tagType: BattlerTagType, turnCount: integer, sourceMove: Moves, sourceId: integer): BattlerTag { export function getBattlerTag(tagType: BattlerTagType, turnCount: integer, sourceMove: Moves, sourceId: integer): BattlerTag {
switch (tagType) { switch (tagType) {
case BattlerTagType.RECHARGING: case BattlerTagType.RECHARGING:
@ -1646,6 +1652,8 @@ export function getBattlerTag(tagType: BattlerTagType, turnCount: integer, sourc
return new DestinyBondTag(sourceMove, sourceId); return new DestinyBondTag(sourceMove, sourceId);
case BattlerTagType.ICE_FACE: case BattlerTagType.ICE_FACE:
return new IceFaceTag(sourceMove); return new IceFaceTag(sourceMove);
case BattlerTagType.POWER_TRICK:
return new PowerTrickTag(sourceMove);
case BattlerTagType.NONE: case BattlerTagType.NONE:
default: default:
return new BattlerTag(tagType, BattlerTagLapseType.CUSTOM, turnCount, sourceMove, sourceId); return new BattlerTag(tagType, BattlerTagLapseType.CUSTOM, turnCount, sourceMove, sourceId);

View File

@ -59,5 +59,6 @@ export enum BattlerTagType {
MINIMIZED = "MINIMIZED", MINIMIZED = "MINIMIZED",
DESTINY_BOND = "DESTINY_BOND", DESTINY_BOND = "DESTINY_BOND",
CENTER_OF_ATTENTION = "CENTER_OF_ATTENTION", CENTER_OF_ATTENTION = "CENTER_OF_ATTENTION",
ICE_FACE = "ICE_FACE" ICE_FACE = "ICE_FACE",
POWER_TRICK = "POWER_TRICK"
} }