static {
   filter.add(
       Predicates.or(
           new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY)));
   filterPermanent.add(Predicates.not(new TokenPredicate()));
   filterPermanent.add(new AnotherPredicate());
 }
Example #2
0
 @Override
 public boolean checkTrigger(GameEvent event, Game game) {
   StackObject spell = game.getStack().getStackObject(event.getSourceId());
   if (spell == null || !(spell instanceof Spell)) {
     return false;
   } else {
     if (event.getTargetId().equals(this.getSourceId())
         && game.getOpponents(this.controllerId).contains(event.getPlayerId())
         && spellCard.match(spell, getSourceId(), getControllerId(), game)) {
       for (Effect effect : getEffects()) {
         effect.setTargetPointer(new FixedTarget(spell.getId()));
       }
       return true;
     }
   }
   return false;
 }
Example #3
0
 static {
   filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
 }
Example #4
0
 static {
   blueFilter.add(new ColorPredicate(ObjectColor.BLUE));
   blackFilter.add(new ColorPredicate(ObjectColor.BLACK));
 }
Example #5
0
 static {
   filter.add(new CardTypePredicate(CardType.ARTIFACT));
 }
Example #6
0
 static {
   filter.add(new SecondSpellPredicate());
 }
Example #7
0
 static {
   filterNonCreature.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
 }
Example #8
0
 static {
   filter.add(new ColorPredicate(ObjectColor.BLACK));
 }
Example #9
0
 static {
   filter.add(
       Predicates.or(
           new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY)));
 }
Example #10
0
 static {
   filter.add(new ColorPredicate(ObjectColor.RED));
   filter.add(
       Predicates.or(
           new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY)));
 }
 static {
   filter.add(new SupertypePredicate("Legendary"));
 }
Example #12
0
 static {
   filterSpell.add(new ColorPredicate(ObjectColor.GREEN));
   filterLand.add(new SubtypePredicate("Forest"));
 }
Example #13
0
 static {
   filter.add(Predicates.not(new SubtypePredicate("Faerie")));
 }
Example #14
0
 static {
   filterSpell.add(new ColorlessPredicate());
 }
Example #15
0
 static {
   filterGreenSpell.add(new ColorPredicate(ObjectColor.GREEN));
   filterBlueSpell.add(new ColorPredicate(ObjectColor.BLUE));
 }
Example #16
0
 static {
   filter.add(new ControllerPredicate(TargetController.NOT_YOU));
 }
 static {
   filterSpell.add(new CardTypePredicate(CardType.CREATURE));
   filterSpell.add(new ConvertedManaCostPredicate(Filter.ComparisonType.GreaterThan, 4));
 }
Example #18
0
 static {
   filter.add(new SubtypePredicate("Giant"));
 }
Example #19
0
 static {
   filter.add(new ColorPredicate(ObjectColor.GREEN));
 }
Example #20
0
 static {
   filter.add(new DawnCharmPredicate());
 }
Example #21
0
 static {
   filter.add(new CardTypePredicate(CardType.INSTANT));
 }