[FDN] fix Alesha, Who Laughs at Fate predicate

This commit is contained in:
theelk801 2024-10-30 10:21:38 -04:00
parent f66eeb2b2a
commit 2dd9054a2a

View file

@ -82,9 +82,8 @@ enum AleshaWhoLaughsAtFatePredicate implements ObjectSourcePlayerPredicate<Card>
public boolean apply(ObjectSourcePlayer<Card> input, Game game) {
return Optional
.ofNullable(input.getSource().getSourcePermanentOrLKI(game))
.map(MageObject::getPower)
.map(MageInt::getValue)
.map(p -> input.getObject().getPower().getValue() <= p)
.map(MageObject::getManaValue)
.map(p -> input.getObject().getManaValue() <= p)
.orElse(false);
}
}