- Fix inverse logic in TokenEffect (fixes e.g. Estrid, the Masked -1 ability)

This commit is contained in:
Agetian
2019-03-05 09:10:48 +03:00
parent cc13020b4b
commit 3f15be2732

View File

@@ -499,7 +499,7 @@ public class TokenEffect extends SpellAbilityEffect {
// TODO update when doing Attach Update
boolean canAttach = lki.isAttachment();
if (canAttach && ge.canBeAttached(lki)) {
if (canAttach && !ge.canBeAttached(lki)) {
canAttach = false;
}
@@ -507,7 +507,7 @@ public class TokenEffect extends SpellAbilityEffect {
game.getAction().checkStaticAbilities(false);
if (!canAttach) {
// Token can't attach it
// Token can't attach to it
return false;
}