- 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:
Agetian
2017-06-21 13:48:28 +00:00
parent 70a6032e68
commit ceb7951dcb
2 changed files with 8 additions and 8 deletions

View File

@@ -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)

View File

@@ -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)) {