mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
[CLB] Implemented Guildsworn Prowler
This commit is contained in:
parent
8303ac65af
commit
2f640f2b05
3 changed files with 77 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue