remove call to getCardDefinition
parent
ea903959fd
commit
0a976d8724
|
@ -1,12 +1,12 @@
|
||||||
def INSTANT_LEQ_CMC_2_FROM_HAND = new MagicCardFilterImpl() {
|
def INSTANT_LEQ_CMC_2_FROM_HAND = new MagicCardFilterImpl() {
|
||||||
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
|
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
|
||||||
final MagicCardDefinition cardDefinition = target.getCardDefinition();
|
return target.getConvertedCost() <= 2 && target.hasType(MagicType.Instant);
|
||||||
return (cardDefinition.getConvertedCost() <= 2 && target.hasType(MagicType.Instant));
|
|
||||||
}
|
}
|
||||||
public boolean acceptType(final MagicTargetType targetType) {
|
public boolean acceptType(final MagicTargetType targetType) {
|
||||||
return targetType == MagicTargetType.Hand;
|
return targetType == MagicTargetType.Hand;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
[
|
[
|
||||||
new MagicWhenComesIntoPlayTrigger() {
|
new MagicWhenComesIntoPlayTrigger() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue