From 0191e89f5a6b95e1082b3cf748ef73a91ed60c89 Mon Sep 17 00:00:00 2001 From: Allan Martinez Date: Sat, 17 Feb 2024 18:38:33 -0800 Subject: [PATCH] refactor Metal Hand: directly return `atLeastOneTarget` --- src/abilities/Cyber-Wolf.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/abilities/Cyber-Wolf.ts b/src/abilities/Cyber-Wolf.ts index 9cbcb9de4..fb9f6a333 100755 --- a/src/abilities/Cyber-Wolf.ts +++ b/src/abilities/Cyber-Wolf.ts @@ -73,14 +73,9 @@ export default (G: Game) => { return false; } - if ( - !this.atLeastOneTarget(this.creature.getHexMap(matrices.frontnback2hex, false), { - team: this._targetTeam, - }) - ) { - return false; - } - return true; + return this.atLeastOneTarget(this.creature.getHexMap(matrices.frontnback2hex, false), { + team: this._targetTeam, + }); }, // query() :