[MH2] fixed Verdant Command not being able to target loyalty abilities (fixes #8054)

This commit is contained in:
Evan Kranzler 2021-07-26 22:51:09 -04:00
parent 6acfe2ae5f
commit 978893aba9

View file

@ -77,10 +77,10 @@ enum VerdantCommandPredicate implements Predicate<StackObject> {
@Override
public boolean apply(StackObject input, Game game) {
if (!(input instanceof LoyaltyAbility)) {
if (!(input.getStackAbility() instanceof LoyaltyAbility)) {
return false;
}
Permanent permanent = ((LoyaltyAbility) input).getSourcePermanentOrLKI(game);
Permanent permanent = ((LoyaltyAbility) input.getStackAbility()).getSourcePermanentOrLKI(game);
return permanent != null && permanent.isPlaneswalker(game);
}
}