Updated Comments

This commit is contained in:
jnotsknab 2025-06-18 18:03:02 -05:00
parent 9e892597ea
commit 0a2e6e1cec

View File

@ -3221,10 +3221,20 @@ export class ImprisonTag extends MoveRestrictionBattlerTag {
}
}
/**
* Battler Tag indicating that a Pokémon has used {@linkcode MoveId.TRANSFORM}
*
* The tag allows us to prevent certain actions such as using Transform on a Pokemon which has already transformed,
* and is used to ensure correct battle behavior after transformation.
*/
export class TransformTag extends BattlerTag {
constructor(sourceId: number) {
super(BattlerTagType.TRANSFORM, BattlerTagLapseType.MOVE, Number.MAX_SAFE_INTEGER, MoveId.TRANSFORM, sourceId);
}
/**
* Adds the Transform battler tag to the Pokemon transforming.
* @param pokemon - The {@linkcode Pokemon} transforming
*/
override onAdd(pokemon: Pokemon): void {
super.onAdd(pokemon);
}