forked from External/mage
[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:
parent
aa4d1654c7
commit
068f5db976
7 changed files with 206 additions and 16 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue