mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fix inverse logic in TokenEffect (fixes e.g. Estrid, the Masked -1 ability)
This commit is contained in:
@@ -499,7 +499,7 @@ public class TokenEffect extends SpellAbilityEffect {
|
|||||||
// TODO update when doing Attach Update
|
// TODO update when doing Attach Update
|
||||||
boolean canAttach = lki.isAttachment();
|
boolean canAttach = lki.isAttachment();
|
||||||
|
|
||||||
if (canAttach && ge.canBeAttached(lki)) {
|
if (canAttach && !ge.canBeAttached(lki)) {
|
||||||
canAttach = false;
|
canAttach = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -507,7 +507,7 @@ public class TokenEffect extends SpellAbilityEffect {
|
|||||||
game.getAction().checkStaticAbilities(false);
|
game.getAction().checkStaticAbilities(false);
|
||||||
|
|
||||||
if (!canAttach) {
|
if (!canAttach) {
|
||||||
// Token can't attach it
|
// Token can't attach to it
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user