Commit b4fb58b9 authored by mercury233's avatar mercury233

update

parent 28d2df35
......@@ -754,8 +754,8 @@ namespace WindBot.Game
private void InternalOnSelectUnselectCard(BinaryReader packet, Func<IList<ClientCard>, int, int, int, bool, IList<ClientCard>> func)
{
packet.ReadByte(); // player
bool buttonok = packet.ReadByte() != 0;
bool cancelable = packet.ReadByte() != 0 || buttonok;
bool finishable = packet.ReadByte() != 0;
bool cancelable = packet.ReadByte() != 0 || finishable;
int min = packet.ReadByte();
int max = packet.ReadByte();
......@@ -788,7 +788,7 @@ namespace WindBot.Game
packet.ReadByte(); // pos
}
IList<ClientCard> selected = func(cards, (cancelable && count2 > 0 ? 0 : 1), 1, _select_hint, cancelable);
IList<ClientCard> selected = func(cards, (finishable ? 0 : 1), 1, _select_hint, cancelable);
_select_hint = 0;
if (selected.Count == 0 && cancelable)
......
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