From 2a4f73a5d7c98481d5b1f9757cb00ed1d63184b5 Mon Sep 17 00:00:00 2001 From: allen Date: Fri, 23 Aug 2024 13:37:55 -0700 Subject: [PATCH] add some comments for nonStopAttr --- src/data/move.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data/move.ts b/src/data/move.ts index 2f591d4ef6b..ce0cb76f910 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -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;