Esempio n. 1
0
 public boolean canBlock(Permanent blocker, Game game) {
   // player can't block if another player is attacked
   if (!defendingPlayerId.equals(blocker.getControllerId())) {
     return false;
   }
   for (UUID attackerId : attackers) {
     if (!blocker.canBlock(attackerId, game)) {
       return false;
     }
   }
   return true;
 }