Commit 45da42ab authored by wind2009's avatar wind2009 Committed by nanahira

fix turn error in match duel

parent c62bc9ee
...@@ -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