Fix missing check for mana abilities at instant speed (#336)

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
tool4ever
2022-05-13 09:58:00 +02:00
committed by GitHub
parent b40e971cdd
commit 9e5573560c

View File

@@ -581,6 +581,11 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
}
}
// Special check for Lion's Eye Diamond
if (sa.isManaAbility() && c.getGame().getStack().isFrozen() && isInstantSpeed()) {
return false;
}
if (!sa.hasSVar("IsCastFromPlayEffect")) {
if (!checkTimingRestrictions(c, sa)) {
return false;
@@ -620,6 +625,6 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
}
return true;
} // canPlay()
}
}