Commit 9959889e authored by nanahira's avatar nanahira

fix duel_start async

parent 9ae40ba5
Pipeline #42411 passed with stages
in 10 minutes and 32 seconds
......@@ -3151,7 +3151,7 @@ loadRemoteData = global.loadRemoteData = (loadObject, name, url)->
load_tips = global.load_tips = ()->
return await loadRemoteData(tips, "tips", settings.modules.tips.get)
ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server, datas)->
ygopro.stoc_follow 'DUEL_START', true, (buffer, info, client, server, datas)->
room=ROOM_all[client.rid]
return unless room and !client.reconnecting
if room.duel_stage == ygopro.constants.DUEL_STAGE.BEGIN #first start
......
......@@ -4188,7 +4188,7 @@
return (await loadRemoteData(tips, "tips", settings.modules.tips.get));
};
ygopro.stoc_follow('DUEL_START', false, async function(buffer, info, client, server, datas) {
ygopro.stoc_follow('DUEL_START', true, async function(buffer, info, client, server, datas) {
var deck_arena, deck_name, deck_text, j, l, len, len1, player, playing_players, ref, room;
room = ROOM_all[client.rid];
if (!(room && !client.reconnecting)) {
......
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