Skip to content

Commit

Permalink
refactor Metal Hand: directly return atLeastOneTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
allmtz committed Feb 18, 2024
1 parent e2f3615 commit 0191e89
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/abilities/Cyber-Wolf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() :
Expand Down

0 comments on commit 0191e89

Please sign in to comment.