From 978893aba9a6855feabe435c469a7902c410a1a6 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 26 Jul 2021 22:51:09 -0400 Subject: [PATCH] [MH2] fixed Verdant Command not being able to target loyalty abilities (fixes #8054) --- Mage.Sets/src/mage/cards/v/VerdantCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/v/VerdantCommand.java b/Mage.Sets/src/mage/cards/v/VerdantCommand.java index 9812eeb26e..838fef8667 100644 --- a/Mage.Sets/src/mage/cards/v/VerdantCommand.java +++ b/Mage.Sets/src/mage/cards/v/VerdantCommand.java @@ -77,10 +77,10 @@ enum VerdantCommandPredicate implements Predicate { @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); } }