Skip to content

Commit

Permalink
Merge pull request #4041 from kwvanderlinde/bugfix/4037-invalid-sight…
Browse files Browse the repository at this point in the history
…-is-breaking-vision
  • Loading branch information
cwisniew authored May 8, 2023
2 parents 4e10dee + 3651562 commit da7275a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,10 @@ private ZoneView.IlluminationKey illuminationKeyFromView(PlayerView view) {
return new ZoneView.IlluminationKey(
view.isUsingTokenView()
? view.getTokens().stream()
.filter(Token::getHasSight)
.map(Token::getSightType)
.map(sightName -> MapTool.getCampaign().getSightType(sightName))
.filter(Objects::nonNull)
.map(SightType::getMultiplier)
.max(Double::compare)
.orElse(1.0)
Expand Down

0 comments on commit da7275a

Please sign in to comment.