* Tiny Leader - The commander cast X times is shown now, you can use deck name "Sultai" as default commander for UBG, check that the commander card can't be again in the deck or sideboard, sideboard can also be empty now, sideboard may not include the commander.

This commit is contained in:
LevelX2 2015-03-12 01:11:31 +01:00
parent 2307e851db
commit aad8edd8cc
7 changed files with 128 additions and 57 deletions

View file

@ -134,7 +134,7 @@ public class CardView extends SimpleCardView {
*
* @param card
* @param game
* @param cardId
* @param cardId not used?
* @param controlled is the card view created for the card controller - used for morph / face down cards to know which player may see information for the card
*/
public CardView(Card card, Game game, UUID cardId, boolean controlled) {

View file

@ -27,22 +27,20 @@
*/
package mage.view;
import java.io.Serializable;
import mage.cards.Card;
import mage.constants.MageObjectType;
import mage.game.Game;
import mage.game.command.Commander;
import java.io.Serializable;
/**
*
* @author Plopman
*/
public class CommanderView extends CardView implements CommandObjectView, Serializable{
public CommanderView(Commander commander, Card sourceCard) {
super(sourceCard);
public CommanderView(Commander commander, Card sourceCard, Game game) {
super(sourceCard, game, null, false);
this.mageObjectType = MageObjectType.COMMANDER;
}
}
}

View file

@ -132,7 +132,7 @@ public class PlayerView implements Serializable {
if(commander.getControllerId().equals(this.playerId)){
Card sourceCard = game.getCard(commander.getSourceId());
if(sourceCard != null){
commandList.add(new CommanderView(commander, sourceCard));
commandList.add(new CommanderView(commander, sourceCard, game));
}
}
}