fix #11210 and similar (LKI in TapEnchantedEffect)

This commit is contained in:
xenohedron 2023-09-26 22:44:48 -04:00
parent 4e561b6254
commit e66c9900f7
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ public class TapEnchantedEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
Permanent permanent = source.getSourcePermanentOrLKI(game);
if (permanent != null) {
Permanent attach = game.getPermanent(permanent.getAttachedTo());
if (attach != null) {

View file

@ -28,7 +28,7 @@ public class UntapAttachedEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getSourceId());
Permanent permanent = source.getSourcePermanentOrLKI(game);
if (permanent != null) {
Permanent attach = game.getPermanent(permanent.getAttachedTo());
if (attach != null) {