[CLB] Implemented Guildsworn Prowler

This commit is contained in:
Evan Kranzler 2022-05-31 19:33:05 -04:00
parent 8303ac65af
commit 2f640f2b05
3 changed files with 77 additions and 0 deletions

View file

@ -53,4 +53,14 @@ public class BlockingOrBlockedWatcher extends Watcher {
.stream()
.anyMatch(mor -> mor.refersTo(blocker, game));
}
public static boolean check(Permanent blocker, Game game) {
return game.getState()
.getWatcher(BlockingOrBlockedWatcher.class)
.blockerMap
.values()
.stream()
.flatMap(Collection::stream)
.anyMatch(mor -> mor.refersTo(blocker, game));
}
}