mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Fix missing check for mana abilities at instant speed (#336)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user