made checking of metalcraft clearer by using MagicCondition
parent
dafdd72323
commit
728e301f7d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue