[FDN] Fix Alesha, Who Laughs at Fate predicate correctly.

Fixes #13092
This commit is contained in:
Grath 2024-11-30 22:48:31 -05:00
parent 66b4bae2c3
commit 02e4df7fa9

View file

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