Commit 5f75822d authored by mercury233's avatar mercury233

fix mycard version

parent 34d8cf59
......@@ -922,6 +922,13 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
ygopro.stoc_die(client, '${invalid_password_length}')
return
if info.version >= 9016 and info.version <= 9019 and settings.version == 4926 #强行兼容23333版
info.version = settings.version
struct = ygopro.structs["CTOS_JoinGame"]
struct._setBuff(buffer)
struct.set("version", info.version)
buffer = struct.buffer
buffer = new Buffer(info.pass[0...8], 'base64')
if buffer.length != 6
......
......@@ -1147,6 +1147,13 @@
ygopro.stoc_die(client, '${invalid_password_length}');
return;
}
if (info.version >= 9016 && info.version <= 9019 && settings.version === 4926) {
info.version = settings.version;
struct = ygopro.structs["CTOS_JoinGame"];
struct._setBuff(buffer);
struct.set("version", info.version);
buffer = struct.buffer;
}
buffer = new Buffer(info.pass.slice(0, 8), 'base64');
if (buffer.length !== 6) {
ygopro.stoc_die(client, '${invalid_password_payload}');
......
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