mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Converted Count$LowestLibrary to playXCount
This commit is contained in:
@@ -1173,11 +1173,6 @@ public class CardFactoryUtil {
|
||||
}
|
||||
return enchantedControllerInPlay.size();
|
||||
}
|
||||
|
||||
// Count$LowestLibrary
|
||||
if (sq[0].contains("LowestLibrary")) {
|
||||
return Aggregates.min(cc.getGame().getPlayers(), Player.Accessors.countCardsInZone(ZoneType.Library));
|
||||
}
|
||||
|
||||
// Count$MonstrosityMagnitude
|
||||
if (sq[0].contains("MonstrosityMagnitude")) {
|
||||
|
||||
@@ -2745,14 +2745,6 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
}
|
||||
};
|
||||
|
||||
public static Function<Player, Integer> countCardsInZone(final ZoneType zone) {
|
||||
return new Function<Player, Integer>() {
|
||||
@Override
|
||||
public Integer apply(Player input) {
|
||||
return input.getZone(zone).size();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user