remove call to getCardDefinition

master
melvin 2013-10-25 13:11:51 +08:00
parent ea903959fd
commit 0a976d8724
1 changed files with 8 additions and 8 deletions

View File

@ -1,12 +1,12 @@
def INSTANT_LEQ_CMC_2_FROM_HAND = new MagicCardFilterImpl() {
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
final MagicCardDefinition cardDefinition = target.getCardDefinition();
return (cardDefinition.getConvertedCost() <= 2 && target.hasType(MagicType.Instant));
}
public boolean acceptType(final MagicTargetType targetType) {
return targetType == MagicTargetType.Hand;
}
};
public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
return target.getConvertedCost() <= 2 && target.hasType(MagicType.Instant);
}
public boolean acceptType(final MagicTargetType targetType) {
return targetType == MagicTargetType.Hand;
}
};
[
new MagicWhenComesIntoPlayTrigger() {
@Override