add some comments for nonStopAttr

This commit is contained in:
allen 2024-08-23 13:37:55 -07:00 committed by allen925
parent f5a6a34d5a
commit 2a4f73a5d7

View File

@ -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;