mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- A somewhat better play effect check which only ignores timing and activator restrictions for a spell, but tests everything else (so it's impossible e.g. to cast a Retrace spell
This commit is contained in:
@@ -113,9 +113,7 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
||||
}
|
||||
|
||||
if (!this.getRestrictions().canPlay(card, this)) {
|
||||
if (!this.hasSVar("IsCastFromPlayEffect")) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// for uncastables like lotus bloom, check if manaCost is blank (except for morph spells)
|
||||
|
||||
@@ -506,12 +506,14 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!checkTimingRestrictions(c, sa)) {
|
||||
return false;
|
||||
}
|
||||
if (!sa.hasSVar("IsCastFromPlayEffect")) {
|
||||
if (!checkTimingRestrictions(c, sa)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!checkActivatorRestrictions(c, sa)) {
|
||||
return false;
|
||||
if (!checkActivatorRestrictions(c, sa)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!checkZoneRestrictions(c, sa)) {
|
||||
|
||||
Reference in New Issue
Block a user