From 0a2e6e1cec738c9032899cf703f46c66821e27f0 Mon Sep 17 00:00:00 2001 From: jnotsknab Date: Wed, 18 Jun 2025 18:03:02 -0500 Subject: [PATCH] Updated Comments --- src/data/battler-tags.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index d49061a97f9..2b1f47d9757 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -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); }