Commit 69ea297e authored by mercury233's avatar mercury233 Committed by nanahira

fix duel_rule

parent 364ee288
...@@ -1341,7 +1341,7 @@ public class Ocgcore : ServantWithCardDescription ...@@ -1341,7 +1341,7 @@ public class Ocgcore : ServantWithCardDescription
gameInfo.swaped = false; gameInfo.swaped = false;
isObserver = ((playertype & 0xf0) > 0) ? true : false; isObserver = ((playertype & 0xf0) > 0) ? true : false;
if (r.BaseStream.Length > 17) // dumb fix for yrp3d replay older than v1.034.9 if (r.BaseStream.Length > 17) // dumb fix for yrp3d replay older than v1.034.9
r.ReadByte(); // duel_rule MasterRule = r.ReadByte(); // duel_rule
life_0 = r.ReadInt32(); life_0 = r.ReadInt32();
life_1 = r.ReadInt32(); life_1 = r.ReadInt32();
lpLimit = life_0; lpLimit = life_0;
......
...@@ -607,6 +607,7 @@ namespace Percy ...@@ -607,6 +607,7 @@ namespace Percy
BinaryMaster master = new BinaryMaster(); BinaryMaster master = new BinaryMaster();
master.writer.Write((char)GameMessage.Start); master.writer.Write((char)GameMessage.Start);
master.writer.Write((byte)0); master.writer.Write((byte)0);
master.writer.Write((byte)(yrp.opt >> 16));
master.writer.Write(yrp.StartLp); master.writer.Write(yrp.StartLp);
master.writer.Write(yrp.StartLp); master.writer.Write(yrp.StartLp);
master.writer.Write((UInt16)dll.query_field_count(duel, 0, 0x1)); master.writer.Write((UInt16)dll.query_field_count(duel, 0, 0x1));
......
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