Finally first draft of Dynamo variant
[vchess.git] / client / src / variants / Tencubed.js
index 99bff13..3316625 100644 (file)
@@ -206,11 +206,11 @@ export class TencubedRules extends ChessRules {
 
   isAttackedByArchbishop(sq, color) {
     return (
-      this.isAttackedBySlideNJump(sq, color, V.CARDINAL, V.steps[V.BISHOP]) ||
+      this.isAttackedBySlideNJump(sq, color, V.ARCHBISHOP, V.steps[V.BISHOP]) ||
       this.isAttackedBySlideNJump(
         sq,
         color,
-        V.CARDINAL,
+        V.ARCHBISHOP,
         V.steps[V.KNIGHT],
         "oneStep"
       )