Commit 7a59c845 authored by nanahira's avatar nanahira

add more wait messages

parent 29eca851
...@@ -1354,7 +1354,7 @@ ygopro.stoc_follow 'GAME_MSG', false, (buffer, info, client, server)-> ...@@ -1354,7 +1354,7 @@ ygopro.stoc_follow 'GAME_MSG', false, (buffer, info, client, server)->
return unless room return unless room
msg = buffer.readInt8(0) msg = buffer.readInt8(0)
if msg >= 10 and msg < 30 #SELECT开头的消息 if (msg >= 10 and msg < 30) or msg == 132 or (msg >= 140 and msg < 144) #SELECT和ANNOUNCE开头的消息
room.waiting_for_player = client room.waiting_for_player = client
room.last_active_time = moment() room.last_active_time = moment()
#log.info("#{ygopro.constants.MSG[msg]}等待#{room.waiting_for_player.name}") #log.info("#{ygopro.constants.MSG[msg]}等待#{room.waiting_for_player.name}")
......
...@@ -1638,7 +1638,7 @@ ...@@ -1638,7 +1638,7 @@
return; return;
} }
msg = buffer.readInt8(0); msg = buffer.readInt8(0);
if (msg >= 10 && msg < 30) { if ((msg >= 10 && msg < 30) || msg === 132 || (msg >= 140 && msg < 144)) {
room.waiting_for_player = client; room.waiting_for_player = client;
room.last_active_time = moment(); room.last_active_time = moment();
} }
......
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