Improve Ygra, Eater of All

This commit is contained in:
PurpleCrowbar 2024-08-14 03:13:39 +01:00
parent 51ba06216e
commit 9e6ffe7521

View file

@ -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) {