[NEO] Fix Iron Apprentice regression

This commit is contained in:
Alex W. Jackson 2022-10-14 06:27:29 -04:00
parent c72191f1f9
commit 231c6c1eeb
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ class IronApprenticeEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = source.getSourcePermanentOrLKI(game);
Permanent permanent = (Permanent) getValue("permanentLeftBattlefield");
Permanent creature = game.getPermanent(source.getFirstTarget());
if (permanent == null || creature == null) {
return false;

View file

@ -11,7 +11,7 @@ public enum SourceHasCountersCondition implements Condition {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getSourceId());
Permanent permanent = source.getSourcePermanentOrLKI(game);
if (permanent == null) {
return false;
}