mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fix NoSuchElementException when resolving Tectonic Hellion's triggered ability. (#6061)
This commit is contained in:
parent
fda5ac170a
commit
76da8dd539
1 changed files with 2 additions and 3 deletions
|
@ -70,9 +70,8 @@ class TectonicHellionEffect extends OneShotEffect {
|
|||
Map<UUID, Integer> landMap = new HashMap<>();
|
||||
game.getState()
|
||||
.getPlayersInRange(source.getControllerId(), game)
|
||||
.stream()
|
||||
.map(uuid -> landMap.put(uuid, game.getBattlefield().getActivePermanents(
|
||||
StaticFilters.FILTER_LAND, uuid, source.getSourceId(), game
|
||||
.forEach(uuid -> landMap.put(uuid, game.getBattlefield().getActivePermanents(
|
||||
StaticFilters.FILTER_CONTROLLED_PERMANENT_LAND, uuid, source.getSourceId(), game
|
||||
).size()));
|
||||
int max = landMap
|
||||
.values()
|
||||
|
|
Loading…
Reference in a new issue