Commit e44a1638 authored by mercury233's avatar mercury233

fix duel_rule

parent b8df8acf
......@@ -1317,7 +1317,7 @@ public class Ocgcore : ServantWithCardDescription
gameInfo.swaped = false;
isObserver = ((playertype & 0xf0) > 0) ? true : false;
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_1 = r.ReadInt32();
lpLimit = life_0;
......
......@@ -623,6 +623,7 @@ namespace Percy
BinaryMaster master = new BinaryMaster();
master.writer.Write((char)GameMessage.Start);
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((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