Commit 22e1a364 authored by mercury233's avatar mercury233 Committed by nanahira

fix new_card CardPosition

parent 69ea297e
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
......@@ -515,12 +515,12 @@ namespace Percy
for (int i = deck_player.Main.Count - 1; i >= 0; i--)
{
dll.new_card(duel, (uint)deck_player.Main[i],
(byte)playerId, (byte)playerId, (byte)CardLocation.Deck, 0, 0);
(byte)playerId, (byte)playerId, (byte)CardLocation.Deck, 0, (byte)CardPosition.FaceDownDefence);
}
for (int i = 0; i < deck_player.Extra.Count; i++)
{
dll.new_card(duel, (uint)deck_player.Extra[i],
(byte)playerId, (byte)playerId, (byte)CardLocation.Extra, 0, 0);
(byte)playerId, (byte)playerId, (byte)CardLocation.Extra, 0, (byte)CardPosition.FaceDownDefence);
}
}
......@@ -552,11 +552,11 @@ namespace Percy
{
foreach (var item in yrp.playerData[0].main)
{
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Deck, 0, 0);
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Deck, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[0].extra)
{
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Extra, 0, 0);
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Extra, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[1].main)
{
......@@ -569,11 +569,11 @@ namespace Percy
foreach (var item in yrp.playerData[2].main)
{
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Deck, 0, 0);
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Deck, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[2].extra)
{
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Extra, 0, 0);
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Extra, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[3].main)
{
......@@ -588,20 +588,20 @@ namespace Percy
{
foreach (var item in yrp.playerData[0].main)
{
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Deck, 0, 0);
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Deck, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[0].extra)
{
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Extra, 0, 0);
dll.new_card(duel, (uint)item, (byte)0, (byte)0, (byte)CardLocation.Extra, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[1].main)
{
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Deck, 0, 0);
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Deck, 0, (byte)CardPosition.FaceDownDefence);
}
foreach (var item in yrp.playerData[1].extra)
{
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Extra, 0, 0);
dll.new_card(duel, (uint)item, (byte)1, (byte)1, (byte)CardLocation.Extra, 0, (byte)CardPosition.FaceDownDefence);
}
}
BinaryMaster master = new BinaryMaster();
......
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