made checking of metalcraft clearer by using MagicCondition

master
melvin 2012-08-28 20:32:49 +08:00
parent dafdd72323
commit 728e301f7d
1 changed files with 2 additions and 2 deletions

View File

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