From 9e6ffe7521ed69bf2c434e508d806c1609b2001a Mon Sep 17 00:00:00 2001 From: PurpleCrowbar <26198472+PurpleCrowbar@users.noreply.github.com> Date: Wed, 14 Aug 2024 03:13:39 +0100 Subject: [PATCH] Improve Ygra, Eater of All --- Mage.Sets/src/mage/cards/y/YgraEaterOfAll.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/y/YgraEaterOfAll.java b/Mage.Sets/src/mage/cards/y/YgraEaterOfAll.java index 1fdf0558b7e..f58324a77f9 100644 --- a/Mage.Sets/src/mage/cards/y/YgraEaterOfAll.java +++ b/Mage.Sets/src/mage/cards/y/YgraEaterOfAll.java @@ -78,7 +78,7 @@ class YgraEaterOfAllEffect extends ContinuousEffectImpl { @Override public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) { for (Permanent permanent : game.getBattlefield().getActivePermanents(StaticFilters.FILTER_PERMANENT_CREATURES, source.getControllerId(), source, game)) { - if (permanent == game.getPermanent(source.getSourceId())) { + if (permanent.getId().equals(source.getSourceId())) { continue; } switch (layer) {