1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-13 17:00:09 -09:00

Fix NoSuchElementException when resolving Tectonic Hellion's triggered ability. ()

This commit is contained in:
Tosh94 2019-11-30 22:27:37 +01:00 committed by Jeff Wadsworth
parent fda5ac170a
commit 76da8dd539

View file

@ -70,9 +70,8 @@ class TectonicHellionEffect extends OneShotEffect {
Map<UUID, Integer> landMap = new HashMap<>(); Map<UUID, Integer> landMap = new HashMap<>();
game.getState() game.getState()
.getPlayersInRange(source.getControllerId(), game) .getPlayersInRange(source.getControllerId(), game)
.stream() .forEach(uuid -> landMap.put(uuid, game.getBattlefield().getActivePermanents(
.map(uuid -> landMap.put(uuid, game.getBattlefield().getActivePermanents( StaticFilters.FILTER_CONTROLLED_PERMANENT_LAND, uuid, source.getSourceId(), game
StaticFilters.FILTER_LAND, uuid, source.getSourceId(), game
).size())); ).size()));
int max = landMap int max = landMap
.values() .values()