From 728e301f7db522a758c418793a9245bffde58e6c Mon Sep 17 00:00:00 2001 From: melvin Date: Tue, 28 Aug 2012 20:32:49 +0800 Subject: [PATCH] made checking of metalcraft clearer by using MagicCondition --- src/magic/card/Ardent_Recruit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/magic/card/Ardent_Recruit.java b/src/magic/card/Ardent_Recruit.java index 5af6de8e4e..4911fb1117 100644 --- a/src/magic/card/Ardent_Recruit.java +++ b/src/magic/card/Ardent_Recruit.java @@ -3,7 +3,7 @@ package magic.card; import magic.model.MagicGame; import magic.model.MagicPermanent; import magic.model.MagicPowerToughness; -import magic.model.MagicType; +import magic.model.condition.MagicCondition; import magic.model.mstatic.MagicLayer; import magic.model.mstatic.MagicStatic; @@ -11,7 +11,7 @@ public class Ardent_Recruit { public static final MagicStatic S = new MagicStatic(MagicLayer.ModPT) { @Override public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) { - if (permanent.getController().getNrOfPermanentsWithType(MagicType.Artifact) >= 3) { + if (MagicCondition.METALCRAFT_CONDITION.accept(source)) { pt.add(2,2); } }