Commit ad52404f authored by wind2009's avatar wind2009 Committed by mercury233

fix turn error in match duel

parent 8141f105
...@@ -323,6 +323,7 @@ namespace WindBot.Game ...@@ -323,6 +323,7 @@ namespace WindBot.Game
{ {
int type = packet.ReadByte(); int type = packet.ReadByte();
_duel.IsFirst = (type & 0xF) == 0; _duel.IsFirst = (type & 0xF) == 0;
_duel.Turn = 0;
_duel.LifePoints[GetLocalPlayer(0)] = packet.ReadInt32(); _duel.LifePoints[GetLocalPlayer(0)] = packet.ReadInt32();
_duel.LifePoints[GetLocalPlayer(1)] = packet.ReadInt32(); _duel.LifePoints[GetLocalPlayer(1)] = packet.ReadInt32();
int deck = packet.ReadInt16(); int deck = packet.ReadInt16();
......
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