[PIP] Implement Mr. House, President and CEO (#11610)

* move Cybernetic Datasmith's robot token to RobotCantBlockToken since Mr. House has a more generic version

* Update tokens database
This commit is contained in:
jimga150 2024-01-06 15:09:14 -05:00 committed by GitHub
parent aa4d1654c7
commit 068f5db976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 206 additions and 16 deletions

View file

@ -45,7 +45,7 @@ public class OneOrMoreDiceRolledTriggeredAbility extends TriggeredAbilityImpl {
int maxRoll = ((DiceRolledEvent) event)
.getResults()
.stream()
.filter(Integer.class::isInstance) // only numerical die result can be masured
.filter(Integer.class::isInstance) // only numerical die result can be measured
.map(Integer.class::cast)
.mapToInt(Integer::intValue)
.max()
@ -53,7 +53,7 @@ public class OneOrMoreDiceRolledTriggeredAbility extends TriggeredAbilityImpl {
int totalRoll = ((DiceRolledEvent) event)
.getResults()
.stream()
.filter(Integer.class::isInstance) // only numerical die result can be masured
.filter(Integer.class::isInstance) // only numerical die result can be measured
.map(Integer.class::cast)
.mapToInt(Integer::intValue)
.sum();