Commit be5e9c42 authored by nanahira's avatar nanahira

update for moving turn

parent 4cac937b
...@@ -1513,7 +1513,8 @@ ...@@ -1513,7 +1513,8 @@
} }
} }
if (ygopro.constants.MSG[msg] === 'NEW_TURN') { if (ygopro.constants.MSG[msg] === 'NEW_TURN') {
if (client.pos === 0) { playertype = buffer.readUInt8(1);
if ((client.pos === 0) && (playertype & 0x2 === 0)) {
room.turn = room.turn + 1; room.turn = room.turn + 1;
} }
if (client.surrend_confirm) { if (client.surrend_confirm) {
......
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