From 56b673e1a943ccef7f85b63c1055d61092e684f4 Mon Sep 17 00:00:00 2001 From: drmDev Date: Sun, 3 Apr 2016 06:57:47 -0400 Subject: [PATCH] DeclarationInStone additional checks --- .../mage/sets/shadowsoverinnistrad/DeclarationInStone.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/shadowsoverinnistrad/DeclarationInStone.java b/Mage.Sets/src/mage/sets/shadowsoverinnistrad/DeclarationInStone.java index 00d84a8375..934221e2e6 100644 --- a/Mage.Sets/src/mage/sets/shadowsoverinnistrad/DeclarationInStone.java +++ b/Mage.Sets/src/mage/sets/shadowsoverinnistrad/DeclarationInStone.java @@ -74,6 +74,7 @@ public class DeclarationInStone extends CardImpl { class DeclarationInStoneEffect extends OneShotEffect { + private static final FilterCreaturePermanent creaturesOnly = new FilterCreaturePermanent(); private static final FilterCreaturePermanent nonTokenFilter = new FilterCreaturePermanent("nontoken creature"); static{ nonTokenFilter.add(Predicates.not(new TokenPredicate())); @@ -106,7 +107,11 @@ class DeclarationInStoneEffect extends OneShotEffect { String name = targetPermanent.getName(); for (Permanent permanent : game.getBattlefield().getAllActivePermanents(controllerPermanentId)) { if (permanent != null && permanent.getName().equals(name)) { - you.moveCardToExileWithInfo(permanent, exileId, sourceObject.getIdName(), source.getSourceId(), game, Zone.BATTLEFIELD, true); + + // only exile creatures (reported bug on awakened lands targetted exiling all other lands of same name) + if (creaturesOnly.match(permanent, game)) { + you.moveCardToExileWithInfo(permanent, exileId, sourceObject.getIdName(), source.getSourceId(), game, Zone.BATTLEFIELD, true); + } // exiled count only matters for non-tokens if (nonTokenFilter.match(permanent, game)) {