From ce78edcd7fcf11795beb5c4224ac6ae8b40a7c99 Mon Sep 17 00:00:00 2001 From: geeil-han Date: Wed, 11 Dec 2024 19:43:05 +0100 Subject: [PATCH] added resetContactFlag() descriptive method --- src/data/move.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 4869f1dd260..23f12052993 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -4621,11 +4621,19 @@ export class ShellSideArmCategoryAttr extends VariableMoveCategoryAttr { move.makesContact(); return true; } - /** MoveFlags are not reset every turn so if this flag is set it needs to be reset if the move is a special attack */ + this.resetContactFlag(move); + return false; + } + + /** + * MoveFlags are not reset every turn so if this flag is set it needs to be reset if the move is a special attack + * This fucntion resets the {@linkcode MoveFlags.MAKES_CONTACT} + * @param move this move should be Shell Side Arm + */ + private resetContactFlag(move: Move): void { if (move.hasFlag(MoveFlags.MAKES_CONTACT)) { move.makesContact(false); } - return false; } }