mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-07 08:52:17 +02:00
add some comments for nonStopAttr
This commit is contained in:
parent
f5a6a34d5a
commit
2a4f73a5d7
@ -4380,9 +4380,17 @@ export class DisableMoveAttr extends MoveEffectAttr {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles moves that are usd consecutively without user command
|
||||
* @extends MoveEffectAttr
|
||||
* @param tagTypes: The types of tags that can be removed
|
||||
* example: @see {@linkcode Moves.THRASH} for frenzy moves
|
||||
* example: @see {@linkcode Moves.ICE_BALL} for non stop moves
|
||||
*/
|
||||
export class nonStopAttr extends MoveEffectAttr {
|
||||
public tagType: BattlerTagType;
|
||||
private rounds: number;
|
||||
// no round specify means frenzy rand 2-3 turns
|
||||
constructor(tagType: BattlerTagType, rounds:number = 0) {
|
||||
super(true, MoveEffectTrigger.HIT, false, true);
|
||||
this.tagType = tagType;
|
||||
|
Loading…
Reference in New Issue
Block a user