mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
parent
f35e00463d
commit
473d899bf6
2 changed files with 35 additions and 2 deletions
|
|
@ -29,8 +29,12 @@ public class CardsLeftGraveyardWatcher extends Watcher {
|
|||
|| ((ZoneChangeEvent) event).getFromZone() != Zone.GRAVEYARD) {
|
||||
return;
|
||||
}
|
||||
UUID playerId = event.getPlayerId();
|
||||
if (playerId == null || game.getCard(event.getTargetId()) == null) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if (card == null) {
|
||||
return;
|
||||
}
|
||||
UUID playerId = card.getOwnerId();
|
||||
if (playerId == null) {
|
||||
return;
|
||||
}
|
||||
cardsLeftGraveyardThisTurn.computeIfAbsent(playerId, k -> new HashSet<>())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue