From d8237c251a848a15e3d3861956c2f1c170863985 Mon Sep 17 00:00:00 2001 From: Cae Rulius Date: Mon, 13 May 2024 15:21:08 -0500 Subject: [PATCH] added TSdocs for function] --- src/data/move.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 3ba988503b4..3c3434b3451 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2372,10 +2372,21 @@ export class ThunderAccuracyAttr extends VariableAccuracyAttr { } } +/** + * Attribute used for moves which never miss + * against pokemon that used Minimize + */ export class MinimizeAccuracyAttr extends VariableAccuracyAttr{ + /** + * Swaps the user and the target's stat changes. + * @param user Pokemon that used the move + * @param target The target of the move + * @param move Move that never misses against Minimized targets + * @param args Accuracy of the move being used + * @returns true if the function succeeds + */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { if (target.getTag(BattlerTagType.MINIMIZED)){ - const accuracy = args[0] as Utils.NumberHolder accuracy.value = -1;