From 226262305e398b74869cf7d5bd2d85fe436bc46f Mon Sep 17 00:00:00 2001 From: magenoxx Date: Sun, 6 Nov 2011 14:06:05 +0300 Subject: [PATCH] Fixed Issue 368. --- .../src/mage/sets/innistrad/StromkirkNoble.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/innistrad/StromkirkNoble.java b/Mage.Sets/src/mage/sets/innistrad/StromkirkNoble.java index 244e432893..0dfb06047b 100644 --- a/Mage.Sets/src/mage/sets/innistrad/StromkirkNoble.java +++ b/Mage.Sets/src/mage/sets/innistrad/StromkirkNoble.java @@ -37,6 +37,7 @@ import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.RestrictionEffect; import mage.abilities.effects.common.CantBlockSourceEffect; import mage.abilities.effects.common.continious.CantBeBlockedByOneEffect; import mage.abilities.effects.common.counter.AddCountersSourceEffect; @@ -48,6 +49,7 @@ import mage.game.permanent.Permanent; /** * * @author Alvin + * @author ayratn */ public class StromkirkNoble extends CardImpl { @@ -77,7 +79,7 @@ public class StromkirkNoble extends CardImpl { } } -class StromkirkEffect extends CantBlockSourceEffect { +class StromkirkEffect extends RestrictionEffect { public StromkirkEffect() { super(Duration.WhileOnBattlefield); @@ -87,6 +89,14 @@ class StromkirkEffect extends CantBlockSourceEffect { super(effect); } + @Override + public boolean applies(Permanent permanent, Ability source, Game game) { + if (permanent.getId().equals(source.getSourceId())) { + return true; + } + return false; + } + @Override public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) { return !blocker.hasSubtype("Human");