From f64428ac4b55fec790ee61ad8db3e8a04c75d09c Mon Sep 17 00:00:00 2001 From: PurpleCrowbar <26198472+PurpleCrowbar@users.noreply.github.com> Date: Wed, 14 Aug 2024 03:01:13 +0100 Subject: [PATCH] Fix Twenty-Toed Toad --- Mage.Sets/src/mage/cards/t/TwentyToedToad.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/t/TwentyToedToad.java b/Mage.Sets/src/mage/cards/t/TwentyToedToad.java index 9e24d44436b..08cfc2f57c3 100644 --- a/Mage.Sets/src/mage/cards/t/TwentyToedToad.java +++ b/Mage.Sets/src/mage/cards/t/TwentyToedToad.java @@ -65,11 +65,7 @@ enum TwentyToedToadCondition implements Condition { @Override public boolean apply(Game game, Ability source) { Player player = game.getPlayer(source.getControllerId()); - Permanent permanent = game.getPermanent(source.getSourceId()); - if (player == null || permanent == null) { - return false; - } - return permanent.getCounters(game).getTotalCount() >= 20 - || player.getHand().size() >= 20; + Permanent permanent = source.getSourcePermanentIfItStillExists(game); + return player != null && (player.getHand().size() >= 20 || (permanent != null && permanent.getCounters(game).getTotalCount() >= 20)); } }