From 949662de1678b1bf3567f5072ac433747be54ea9 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 22 May 2016 16:24:45 +0200 Subject: [PATCH] * Coat of Arms - FIxed that the boost effect also worked with non creature types (e.g. Basic land types if some lands were animated). --- Mage.Sets/src/mage/sets/magic2010/CoatOfArms.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magic2010/CoatOfArms.java b/Mage.Sets/src/mage/sets/magic2010/CoatOfArms.java index d2d2687c8a5..6641c9bb585 100644 --- a/Mage.Sets/src/mage/sets/magic2010/CoatOfArms.java +++ b/Mage.Sets/src/mage/sets/magic2010/CoatOfArms.java @@ -44,6 +44,7 @@ import mage.constants.Zone; import mage.filter.common.FilterCreaturePermanent; import mage.game.Game; import mage.game.permanent.Permanent; +import mage.util.CardUtil; /** * @@ -87,11 +88,6 @@ class CoatOfArmsEffect extends ContinuousEffectImpl { return new CoatOfArmsEffect(this); } - @Override - public void init(Ability source, Game game) { - super.init(source, game); - } - @Override public boolean apply(Game game, Ability source) { List permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game); @@ -112,9 +108,11 @@ class CoatOfArmsEffect extends ContinuousEffectImpl { for (Permanent permanent : permanents) { if (!permanent.getId().equals(target.getId())) { for (String subtype : targetSubtype) { - if (permanent.hasSubtype(subtype)) { - amount++; - break; + if (!CardUtil.isNonCreatureSubtype(subtype)) { + if (permanent.hasSubtype(subtype)) { + amount++; + break; + } } } }