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

@ -73,7 +73,7 @@ class BindTheMonsterEffect extends OneShotEffect {
@Override
public boolean apply (Game game, Ability source) {
Permanent attachment = source.getSourcePermanentIfItStillExists(game);
Permanent attachment = source.getSourcePermanentOrLKI(game);
if (attachment != null) {
Permanent creature = game.getPermanent(attachment.getAttachedTo());
if (creature != null) {

View file

@ -83,7 +83,7 @@ class TamiyosCompleationTapEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent enchantment = source.getSourcePermanentIfItStillExists(game);
Permanent enchantment = source.getSourcePermanentOrLKI(game);
if (enchantment != null) {
Permanent enchanted = game.getPermanent(enchantment.getAttachedTo());
if (enchanted != null) {

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