added scp[es

This commit is contained in:
frutescens 2024-10-03 11:35:41 -07:00
parent 68402c5516
commit a33cc74843

View File

@ -141,7 +141,7 @@ export abstract class MoveRestrictionBattlerTag extends BattlerTag {
* @param {Pokemon} user {@linkcode Pokemon} the Pokemon involved * @param {Pokemon} user {@linkcode Pokemon} the Pokemon involved
* @returns {boolean} `true` if the move is restricted by this tag, otherwise `false`. * @returns {boolean} `true` if the move is restricted by this tag, otherwise `false`.
*/ */
abstract isMoveRestricted(move: Moves, user?: Pokemon): boolean; public abstract isMoveRestricted(move: Moves, user?: Pokemon): boolean;
/** /**
* Checks if this tag is restricting a move based on a user's decisions during the target selection phase * Checks if this tag is restricting a move based on a user's decisions during the target selection phase
@ -334,7 +334,7 @@ export class GorillaTacticsTag extends MoveRestrictionBattlerTag {
* @override * @override
* @param source Gorilla Tactics' {@linkcode BattlerTag} information * @param source Gorilla Tactics' {@linkcode BattlerTag} information
*/ */
override loadTag(source: BattlerTag | any): void { public override loadTag(source: BattlerTag | any): void {
super.loadTag(source); super.loadTag(source);
this.moveId = source.moveId; this.moveId = source.moveId;
} }
@ -2523,7 +2523,7 @@ export class TormentTag extends MoveRestrictionBattlerTag {
* @param {Moves} move the move under investigation * @param {Moves} move the move under investigation
* @returns `true` if there is valid consecutive usage | `false` if the moves are different from each other * @returns `true` if there is valid consecutive usage | `false` if the moves are different from each other
*/ */
override isMoveRestricted(move: Moves, user: Pokemon): boolean { public override isMoveRestricted(move: Moves, user: Pokemon): boolean {
if (!user) { if (!user) {
return false; return false;
} }
@ -2592,11 +2592,12 @@ export class ImprisonTag extends MoveRestrictionBattlerTag {
/** /**
* Checks if the source of Imprison is still active * Checks if the source of Imprison is still active
* @override
* @param _pokemon * @param _pokemon
* @param _lapseType * @param _lapseType
* @returns `true` if the source is still active * @returns `true` if the source is still active
*/ */
override lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean { public override lapse(pokemon: Pokemon, lapseType: BattlerTagLapseType): boolean {
const source = this.retrieveSource(pokemon.scene); const source = this.retrieveSource(pokemon.scene);
if (source) { if (source) {
if (lapseType === BattlerTagLapseType.PRE_MOVE) { if (lapseType === BattlerTagLapseType.PRE_MOVE) {
@ -2610,10 +2611,11 @@ export class ImprisonTag extends MoveRestrictionBattlerTag {
/** /**
* Checks if the source of the tag has the parameter move in its moveset and that the source is still active * Checks if the source of the tag has the parameter move in its moveset and that the source is still active
* @override
* @param {Moves} move the move under investigation * @param {Moves} move the move under investigation
* @returns `false` if either condition is not met * @returns `false` if either condition is not met
*/ */
override isMoveRestricted(move: Moves, user: Pokemon): boolean { public override isMoveRestricted(move: Moves, user: Pokemon): boolean {
const source = this.retrieveSource(user.scene); const source = this.retrieveSource(user.scene);
if (source) { if (source) {
const sourceMoveset = source.getMoveset().map(m => m!.moveId); const sourceMoveset = source.getMoveset().map(m => m!.moveId);