* 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:
Oleg Agafonov 2021-09-21 15:30:40 +04:00
parent 6bc5a00e8a
commit d35e1fbfb1
21 changed files with 54 additions and 32 deletions

View file

@ -449,19 +449,15 @@ public interface Player extends MageItem, Copyable<Player> {
boolean canPlayLand();
/**
* Plays a card if possible
* Plays a card (play land or cast spell). Works from any zones without timing restriction
*
* @param card the card that can be cast
* @param game
* @param noMana if it's a spell i can be cast without paying mana
* @param ignoreTiming if it's cast during the resolution of another
* spell no sorcery or play land timing restriction
* are checked. For a land it has to be the turn of
* the player playing that card.
* @param noMana if it's a spell it can be cast without paying mana
* @param approvingObject reference to the ability that allows to play the card
* @return
*/
boolean playCard(Card card, Game game, boolean noMana, boolean ignoreTiming, ApprovingObject approvingObject);
boolean playCard(Card card, Game game, boolean noMana, ApprovingObject approvingObject);
/**
* @param card the land card to play