mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[KHM] fixed GreatestSharedCreatureTypeCount's rollback errors;
This commit is contained in:
parent
f3aefffbe8
commit
e5863eb99f
2 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,8 @@ class InscriptionOfAbundanceEffect extends OneShotEffect {
|
|||
.filter(Objects::nonNull)
|
||||
.map(MageObject::getPower)
|
||||
.mapToInt(MageInt::getValue)
|
||||
.max().orElse(0);
|
||||
.max()
|
||||
.orElse(0);
|
||||
if (maxPower > 0) {
|
||||
player.gainLife(maxPower, game, source);
|
||||
return true;
|
||||
|
|
|
@ -50,7 +50,7 @@ public enum GreatestSharedCreatureTypeCount implements DynamicValue {
|
|||
.stream()
|
||||
.mapToInt(x -> x)
|
||||
.max()
|
||||
.getAsInt();
|
||||
.orElse(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue