Made put land from hand onto battelfield effect optional.

This commit is contained in:
LevelX2 2015-01-09 18:41:56 +01:00
parent 4f57abcbd8
commit db192afa38

View file

@ -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);