mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Made put land from hand onto battelfield effect optional.
This commit is contained in:
parent
4f57abcbd8
commit
db192afa38
1 changed files with 3 additions and 2 deletions
|
@ -65,8 +65,9 @@ public class PutLandFromHandOntoBattlefieldEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
Target target = new TargetCardInHand(new FilterLandCard("land card"));
|
||||
if (target.canChoose(source.getSourceId(), source.getControllerId(), game)
|
||||
&& controller.choose(outcome, target, source.getSourceId(), game)) {
|
||||
if (target.canChoose(source.getSourceId(), source.getControllerId(), game) &&
|
||||
controller.chooseUse(outcome, "Put land onto battlefield?", game) &&
|
||||
controller.choose(outcome, target, source.getSourceId(), game)) {
|
||||
Card card = game.getCard(target.getFirstTarget());
|
||||
if (card != null) {
|
||||
controller.putOntoBattlefieldWithInfo(card, game, Zone.HAND, source.getSourceId(), tapped);
|
||||
|
|
Loading…
Reference in a new issue