mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
[FDN] fix Alesha, Who Laughs at Fate predicate
This commit is contained in:
parent
f66eeb2b2a
commit
2dd9054a2a
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue