fixed The Great Henge and Return of the Wildspeaker throwing errors when no creatures are present

This commit is contained in:
Evan Kranzler 2019-09-25 09:07:02 -04:00
parent 3d5925826c
commit 9a993f9871
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ enum ReturnOfTheWildspeakerValue implements DynamicValue {
.map(MageObject::getPower)
.mapToInt(MageInt::getValue)
.max()
.getAsInt();
.orElse(0);
}
@Override

View file

@ -91,8 +91,8 @@ class TheGreatHengeCostReductionEffect extends CostModificationEffectImpl {
.map(Permanent::getPower)
.mapToInt(MageInt::getValue)
.max()
.getAsInt();
CardUtil.reduceCost(abilityToModify, reductionAmount);
.orElse(0);
CardUtil.reduceCost(abilityToModify, Math.max(0, reductionAmount));
return true;
}