- (this.options["zen"] && !king) &&
- this.findDestSquares([x, y],
- {attackOnly: true, segments: this.options["cylinder"], one: true},
- ([i, j]) => this.canTake([i, j], [x, y]))
+ (!!this.options["zen"] && !king) &&
+ this.findDestSquares(
+ [x, y],
+ {
+ attackOnly: true,
+ segments: this.options["cylinder"],
+ one: true
+ },
+ ([i1, j1], [i2, j2]) => this.getColor(i2, j2) == oppCol
+ )