mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
fix #11210 and similar (LKI in TapEnchantedEffect)
This commit is contained in:
parent
4e561b6254
commit
e66c9900f7
4 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue