mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +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 {
|
export class TransformTag extends BattlerTag {
|
||||||
constructor(sourceId: number) {
|
constructor(sourceId: number) {
|
||||||
super(BattlerTagType.TRANSFORM, BattlerTagLapseType.MOVE, Number.MAX_SAFE_INTEGER, MoveId.TRANSFORM, sourceId);
|
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 {
|
override onAdd(pokemon: Pokemon): void {
|
||||||
super.onAdd(pokemon);
|
super.onAdd(pokemon);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user