forked from External/mage
* Play card without mana - fixed that some cards did not allow to choose a casting spell from split/mdfc cards (#7410);
This commit is contained in:
parent
6bc5a00e8a
commit
d35e1fbfb1
21 changed files with 54 additions and 32 deletions
|
|
@ -1128,16 +1128,21 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean playCard(Card card, Game game, boolean noMana, boolean ignoreTiming, ApprovingObject approvingObject) {
|
||||
public boolean playCard(Card card, Game game, boolean noMana, ApprovingObject approvingObject) {
|
||||
if (card == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// play without timing and from any zone
|
||||
boolean result;
|
||||
if (card.isLand(game)) {
|
||||
result = playLand(card, game, ignoreTiming);
|
||||
result = playLand(card, game, true);
|
||||
} else {
|
||||
result = cast(card.getSpellAbility(), game, noMana, approvingObject);
|
||||
game.getState().setValue("PlayFromNotOwnHandZone" + card.getId(), Boolean.TRUE);
|
||||
result = cast(this.chooseAbilityForCast(card, game, noMana), game, noMana, approvingObject);
|
||||
game.getState().setValue("PlayFromNotOwnHandZone" + card.getId(), null);
|
||||
}
|
||||
|
||||
if (!result) {
|
||||
game.informPlayer(this, "You can't play " + card.getIdName() + '.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue