Commit ae0558c9 authored by mercury233's avatar mercury233 Committed by nanahira

fix GameMessage.SwapGraveDeck

parent da0034f1
Pipeline #16781 passed with stages
in 10 minutes and 47 seconds
...@@ -258,6 +258,11 @@ public class gameCard : OCGobject ...@@ -258,6 +258,11 @@ public class gameCard : OCGobject
FlashingController MouseFlash; FlashingController MouseFlash;
public bool IsExtraCard()
{
return data.IsExtraCard();
}
void RefreshFunction_decoration() void RefreshFunction_decoration()
{ {
for (int i = 0; i < cardDecorations.Count; i++) for (int i = 0; i < cardDecorations.Count; i++)
......
...@@ -2376,6 +2376,9 @@ public class Ocgcore : ServantWithCardDescription ...@@ -2376,6 +2376,9 @@ public class Ocgcore : ServantWithCardDescription
{ {
if (cards[i].p.controller == player) if (cards[i].p.controller == player)
{ {
if(cards[i].IsExtraCard())
cards[i].p.location = (UInt32)CardLocation.Extra;
else
cards[i].p.location = (UInt32)CardLocation.Deck; cards[i].p.location = (UInt32)CardLocation.Deck;
} }
} }
......
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