mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
parent
66b4bae2c3
commit
02e4df7fa9
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ enum AleshaWhoLaughsAtFatePredicate implements ObjectSourcePlayerPredicate<Card>
|
||||||
public boolean apply(ObjectSourcePlayer<Card> input, Game game) {
|
public boolean apply(ObjectSourcePlayer<Card> input, Game game) {
|
||||||
return Optional
|
return Optional
|
||||||
.ofNullable(input.getSource().getSourcePermanentOrLKI(game))
|
.ofNullable(input.getSource().getSourcePermanentOrLKI(game))
|
||||||
.map(MageObject::getManaValue)
|
.map(MageObject::getPower)
|
||||||
.map(p -> input.getObject().getManaValue() <= p)
|
.map(p -> input.getObject().getManaValue() <= p.getValue())
|
||||||
.orElse(false);
|
.orElse(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue