mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +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)
|
.filter(Objects::nonNull)
|
||||||
.map(MageObject::getPower)
|
.map(MageObject::getPower)
|
||||||
.mapToInt(MageInt::getValue)
|
.mapToInt(MageInt::getValue)
|
||||||
.max().orElse(0);
|
.max()
|
||||||
|
.orElse(0);
|
||||||
if (maxPower > 0) {
|
if (maxPower > 0) {
|
||||||
player.gainLife(maxPower, game, source);
|
player.gainLife(maxPower, game, source);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -50,7 +50,7 @@ public enum GreatestSharedCreatureTypeCount implements DynamicValue {
|
||||||
.stream()
|
.stream()
|
||||||
.mapToInt(x -> x)
|
.mapToInt(x -> x)
|
||||||
.max()
|
.max()
|
||||||
.getAsInt();
|
.orElse(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue