Commit b1be9e70 authored by Chunchi Che's avatar Chunchi Che

fix magics.tsx

parent 06251747
Pipeline #20416 passed with stages
in 5 minutes and 22 seconds
...@@ -56,7 +56,7 @@ const Magics = () => { ...@@ -56,7 +56,7 @@ const Magics = () => {
const magicPositions = (player: number, magics: CardState[]) => { const magicPositions = (player: number, magics: CardState[]) => {
const x = (sequence: number) => const x = (sequence: number) =>
player == 0 ? left + gap * sequence : -left - gap * sequence; player == 0 ? left + gap * sequence : -left - gap * sequence;
const y = transform.x / 2 + NeosConfig.ui.card.floating; const y = transform.z / 2 + NeosConfig.ui.card.floating;
const z = player == 0 ? -2.6 : 2.6; const z = player == 0 ? -2.6 : 2.6;
return magics.map((_, sequence) => new BABYLON.Vector3(x(sequence), y, z)); return magics.map((_, sequence) => new BABYLON.Vector3(x(sequence), y, z));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment