Пример #1
0
 @Override
 public boolean apply(Game game, Ability source) {
   MageObject object = game.getObject(source.getSourceId());
   if (object != null && object.hasSubtype("Myr")) {
     return true;
   }
   return false;
 }
Пример #2
0
 @Override
 public boolean apply(Game game, Ability source, UUID manaProducer, Cost costToPay) {
   if (super.apply(game, source)) {
     MageObject object = game.getObject(source.getSourceId());
     if (object.hasSubtype("Dragon", game) && object.getCardType().contains(CardType.CREATURE)) {
       return true;
     }
   }
   return false;
 }