fix #12022 (Shipwreck Sentry)

This commit is contained in:
xenohedron 2024-03-29 00:27:18 -04:00
parent cb28fb5a56
commit a3d4293e0d
3 changed files with 63 additions and 2 deletions

View file

@ -50,7 +50,7 @@ public class PermanentsEnteredBattlefieldWatcher extends Watcher {
}
public List<Permanent> getThisTurnEnteringPermanents(UUID playerId) {
return enteringBattlefield.get(playerId);
return enteringBattlefield.getOrDefault(playerId, Collections.emptyList());
}
public boolean anotherCreatureEnteredBattlefieldUnderPlayersControlLastTurn(Permanent sourcePermanent, Game game) {