- {attackOnly: true, segments: false},
- ([x, y] => this.canTake([m.end.x, m.end.y], [x, y]))
+ {
+ attackOnly: true,
+ segments: this.options["cylinder"]
+ },
+ ([i1, j1], [i2, j2]) => {
+ return (
+ super.canTake([i1, j1], [i2, j2]) &&
+ (!this.options["zen"] || this.getPiece(i2, j2) == 'k')
+ );
+ }