forked from External/mage
moved faceDown property from Card to CardState
This commit is contained in:
parent
d7b9a4a979
commit
9ad8530dee
61 changed files with 378 additions and 224 deletions
|
|
@ -127,8 +127,8 @@ public abstract class GameCommanderImpl extends GameImpl {
|
|||
if(!mulliganedCards.containsKey(playerId)){
|
||||
mulliganedCards.put(playerId, new CardsImpl());
|
||||
}
|
||||
card.setFaceDown(true);
|
||||
card.moveToExile(null, "", null, this);
|
||||
card.setFaceDown(true, this);
|
||||
mulliganedCards.get(playerId).add(card);
|
||||
}
|
||||
}
|
||||
|
|
@ -165,8 +165,8 @@ public abstract class GameCommanderImpl extends GameImpl {
|
|||
if(player != null && mulliganedCards.containsKey(playerId)){
|
||||
for(Card card : mulliganedCards.get(playerId).getCards(this)){
|
||||
if(card != null){
|
||||
card.setFaceDown(false);
|
||||
card.moveToZone(Zone.LIBRARY, null, this, false);
|
||||
card.setFaceDown(false, this);
|
||||
}
|
||||
}
|
||||
if(mulliganedCards.get(playerId).size() > 0){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue