forked from External/mage
fixed The Great Henge and Return of the Wildspeaker throwing errors when no creatures are present
This commit is contained in:
parent
3d5925826c
commit
9a993f9871
2 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ enum ReturnOfTheWildspeakerValue implements DynamicValue {
|
|||
.map(MageObject::getPower)
|
||||
.mapToInt(MageInt::getValue)
|
||||
.max()
|
||||
.getAsInt();
|
||||
.orElse(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue