mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Updated Comments
This commit is contained in:
parent
9e892597ea
commit
0a2e6e1cec
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user