Fix #10455 (Ashnod the Uncaring)

This commit is contained in:
xenohedron 2023-06-11 00:34:55 -04:00
parent 029992ecfa
commit d3b976cc46

View file

@ -85,7 +85,7 @@ class AshnodTheUncaringTriggeredAbility extends TriggeredAbilityImpl {
.noneMatch(SacrificeCost.class::isInstance)) {
return false;
}
Permanent permanent = game.getPermanent(stackAbility.getSourceId());
Permanent permanent = game.getPermanentOrLKIBattlefield(stackAbility.getSourceId());
if (permanent == null || (!permanent.isArtifact(game) && !permanent.isCreature(game))) {
return false;
}