Commit 601bd894 authored by mercury233's avatar mercury233 Committed by nanahira

format

parent 2293b442
...@@ -3997,74 +3997,73 @@ public class Ocgcore : ServantWithCardDescription ...@@ -3997,74 +3997,73 @@ public class Ocgcore : ServantWithCardDescription
uint _field = ~r.ReadUInt32(); uint _field = ~r.ReadUInt32();
if (Program.I().setting.setting.hand.value == true || Program.I().setting.setting.handm.value == true || (GameMessage)p.Fuction == GameMessage.SelectDisfield) if (Program.I().setting.setting.hand.value == true || Program.I().setting.setting.handm.value == true || (GameMessage)p.Fuction == GameMessage.SelectDisfield)
{ {
ES_min = min; ES_min = min;
for (int i = 0; i < min; i++) for (int i = 0; i < min; i++)
{ {
byte[] resp = new byte[3]; byte[] resp = new byte[3];
uint filter; uint filter;
for (int j=0; j<2; j++) for (int j = 0; j < 2; j++)
{
resp = new byte[3];
filter = 0;
uint field;
if (j==0)
{
resp[0] = (byte)player;
field = _field & 0xffff;
}
else
{ {
resp[0] = (byte)(1 - player); resp = new byte[3];
field = _field >> 16; filter = 0;
} uint field;
if ((field & 0x7f) != 0) if (j == 0)
{
resp[1] = (byte)CardLocation.MonsterZone;
filter = field & 0x7f;
for (int k = 0; k < 6; k++)
{ {
if ((filter & (1u << k)) != 0) resp[0] = (byte)player;
{ field = _field & 0xffff;
resp[2] = (byte)k;
createPlaceSelector(resp);
}
} }
} else
if ((field & 0x1f00) != 0) {
{ resp[0] = (byte)(1 - player);
resp[1] = (byte)CardLocation.SpellZone; field = _field >> 16;
filter = (field >> 8) & 0x1f; }
for (int k = 0; k < 5; k++)
if ((field & 0x7f) != 0)
{ {
if ((filter & (1u << k)) != 0) resp[1] = (byte)CardLocation.MonsterZone;
filter = field & 0x7f;
for (int k = 0; k < 6; k++)
{ {
resp[2] = (byte)k; if ((filter & (1u << k)) != 0)
createPlaceSelector(resp); {
resp[2] = (byte)k;
createPlaceSelector(resp);
}
} }
} }
} if ((field & 0x1f00) != 0)
if ((field & 0xc000) != 0)
{
resp[1] = (byte)CardLocation.SpellZone;
filter = (field >> 14) & 0x3;
if ((filter & 0x2) != 0)
{ {
resp[2] = 7; resp[1] = (byte)CardLocation.SpellZone;
createPlaceSelector(resp); filter = (field >> 8) & 0x1f;
for (int k = 0; k < 5; k++)
{
if ((filter & (1u << k)) != 0)
{
resp[2] = (byte)k;
createPlaceSelector(resp);
}
}
} }
if ((filter & 0x1) != 0) if ((field & 0xc000) != 0)
{ {
resp[2] = 6; resp[1] = (byte)CardLocation.SpellZone;
createPlaceSelector(resp); filter = (field >> 14) & 0x3;
if ((filter & 0x2) != 0)
{
resp[2] = 7;
createPlaceSelector(resp);
}
if ((filter & 0x1) != 0)
{
resp[2] = 6;
createPlaceSelector(resp);
}
} }
} }
} }
}
if ((GameMessage)p.Fuction == GameMessage.SelectPlace) if ((GameMessage)p.Fuction == GameMessage.SelectPlace)
{ {
if (Es_selectMSGHintType == 3) if (Es_selectMSGHintType == 3)
......
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