Commit 8850ea8a authored by nanahira's avatar nanahira

fix multi intervals when ready

parent 319881d0
Pipeline #224 failed with stages
in 10 minutes and 48 seconds
......@@ -2793,9 +2793,9 @@ ygopro.stoc_follow 'HS_PLAYER_ENTER', true, (buffer, info, client, server, datas
buffer = struct.buffer
await return false
ygopro.stoc_follow 'HS_PLAYER_CHANGE', false, (buffer, info, client, server, datas)->
ygopro.stoc_follow 'HS_PLAYER_CHANGE', true, (buffer, info, client, server, datas)->
room=ROOM_all[client.rid]
return unless room and room.max_player and client.is_host
return unless room and room.max_player and client.pos == 0
pos = info.status >> 4
is_ready = (info.status & 0xf) == 9
if pos < room.max_player
......
......@@ -3660,10 +3660,10 @@
return false;
});
ygopro.stoc_follow('HS_PLAYER_CHANGE', false, async function(buffer, info, client, server, datas) {
ygopro.stoc_follow('HS_PLAYER_CHANGE', true, async function(buffer, info, client, server, datas) {
var is_ready, len3, len4, n, o, p1, p2, player, pos, ref3, ref4, room;
room = ROOM_all[client.rid];
if (!(room && room.max_player && client.is_host)) {
if (!(room && room.max_player && client.pos === 0)) {
return;
}
pos = info.status >> 4;
......
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