Exemple #1
0
 @Override
 public boolean apply(Game game, Ability source) {
   for (UUID attackingCreatureId : game.getCombat().getAttackers()) {
     Permanent attackingCreature = game.getPermanent(attackingCreatureId);
     if (attackingCreature != null) {
       if (attackingCreature.getColor(game).isBlack()
           && attackingCreature.hasAbility(FlyingAbility.getInstance().getId(), game)) {
         return true;
       }
     }
   }
   return false;
 }
Exemple #2
0
 @Override
 public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) {
   return attacker.hasAbility(FlyingAbility.getInstance().getId(), game);
 }