mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[MH2] Implemented Dihada's Ploy
This commit is contained in:
parent
54e5214227
commit
390075efd4
3 changed files with 77 additions and 0 deletions
|
|
@ -37,4 +37,9 @@ public class DiscardedCardWatcher extends Watcher {
|
|||
DiscardedCardWatcher watcher = game.getState().getWatcher(DiscardedCardWatcher.class);
|
||||
return watcher != null && watcher.playerMap.getOrDefault(playerId, 0) > 0;
|
||||
}
|
||||
|
||||
public static int getDiscarded(UUID playerId, Game game) {
|
||||
DiscardedCardWatcher watcher = game.getState().getWatcher(DiscardedCardWatcher.class);
|
||||
return watcher == null ? 0 : watcher.playerMap.getOrDefault(playerId, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue