Commit d63f08d3 authored by nanahira's avatar nanahira

send deck on TYPE_CHANGE

parent 2aec52ca
Pipeline #2862 passed with stages
in 1 minute and 50 seconds
......@@ -188,8 +188,8 @@ namespace WindBot.Game
int duel_rule = packet.ReadByte();
_ai.Duel.IsNewRule = (duel_rule >= 4);
_ai.Duel.IsNewRule2020 = (duel_rule >= 5);
BinaryWriter deck = buildUpdateDeck(pickDeckOnResult());
Connection.Send(deck);
//BinaryWriter deck = buildUpdateDeck(pickDeckOnResult());
//Connection.Send(deck);
_ai.OnJoinGame();
}
......@@ -228,6 +228,8 @@ namespace WindBot.Game
_room.Position = pos;
_room.IsHost = ((type >> 4) & 0xF) != 0;
_room.IsReady[pos] = true;
BinaryWriter deck = buildUpdateDeck(pickDeckOnResult());
Connection.Send(deck);
Connection.Send(CtosMessage.HsReady);
}
......
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