Commit 309c35d7 authored by Chunchi Che's avatar Chunchi Che

fix deck

parent 81ae8d96
Pipeline #21771 passed with stages
in 14 minutes and 32 seconds
...@@ -28,7 +28,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => { ...@@ -28,7 +28,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
matStore.magics.of(1).forEach((x) => (x.location.controler = 1)); matStore.magics.of(1).forEach((x) => (x.location.controler = 1));
for (let i = 0; i < start.deckSize1; i++) { for (let i = 0; i < start.deckSize1; i++) {
matStore.decks.me.push({ matStore.decks.of(0).push({
uuid: v4uuid(), uuid: v4uuid(),
occupant: { occupant: {
id: 0, id: 0,
...@@ -36,7 +36,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => { ...@@ -36,7 +36,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
text: {}, text: {},
}, },
location: { location: {
controler: 1 - opponent, controler: 0,
zone: ygopro.CardZone.DECK, zone: ygopro.CardZone.DECK,
}, },
focus: false, focus: false,
...@@ -47,7 +47,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => { ...@@ -47,7 +47,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
}); });
} }
for (let i = 0; i < start.deckSize2; i++) { for (let i = 0; i < start.deckSize2; i++) {
matStore.decks.op.push({ matStore.decks.of(1).push({
uuid: v4uuid(), uuid: v4uuid(),
occupant: { occupant: {
id: 0, id: 0,
...@@ -55,7 +55,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => { ...@@ -55,7 +55,7 @@ export default (start: ygopro.StocGameMessage.MsgStart) => {
text: {}, text: {},
}, },
location: { location: {
controler: opponent, controler: 1,
zone: ygopro.CardZone.DECK, zone: ygopro.CardZone.DECK,
}, },
focus: false, focus: false,
......
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