mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Auras targetting tokens fix (fixes #4297)
This commit is contained in:
parent
35a950dc80
commit
f93c55025e
1 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ import mage.game.events.GameEvent;
|
|||
import mage.game.events.ZoneChangeEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.PermanentCard;
|
||||
import mage.game.permanent.PermanentImpl;
|
||||
import mage.game.stack.StackAbility;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
|
|
@ -98,7 +99,7 @@ public class AuraReplacementEffect extends ReplacementEffectImpl {
|
|||
// Aura enters the battlefield attached
|
||||
Object object = game.getState().getValue("attachTo:" + card.getId());
|
||||
if (object != null) {
|
||||
if (object instanceof PermanentCard) {
|
||||
if (object instanceof PermanentImpl) {
|
||||
// Aura is attached to a permanent on the battlefield
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue