mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Attempting to fix Suspend by making it exempt from the canPlay() check in HumanPlay.
- Better place for IsCastFromPlayEffect SVar assignment + cleanup - Adding some previously missed card fixes from Marek.
This commit is contained in:
@@ -238,6 +238,8 @@ public class PlayEffect extends SpellAbilityEffect {
|
||||
addReplaceGraveyardEffect(tgtCard, sa, sa.getParam("ReplaceGraveyard"));
|
||||
}
|
||||
|
||||
tgtSA.setSVar("IsCastFromPlayEffect", "True");
|
||||
|
||||
if (controller.getController().playSaFromPlayEffect(tgtSA)) {
|
||||
if (remember) {
|
||||
source.addRemembered(tgtSA.getHostCard());
|
||||
|
||||
@@ -7110,6 +7110,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
// to be restored to their original value if a card changes zones
|
||||
|
||||
removeSVar("PayX"); // Temporary AI X announcement variable
|
||||
removeSVar("IsCastFromPlayEffect"); // Temporary SVar indicating that the spell is cast indirectly via AF Play
|
||||
setSunburstValue(0); // Sunburst
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,6 +108,7 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
||||
|| activator.hasKeyword("You may cast nonland cards as though they had flash.")
|
||||
|| card.hasStartOfKeyword("You may cast CARDNAME as though it had flash.")
|
||||
|| this.hasSVar("IsCastFromPlayEffect")
|
||||
|| card.wasSuspendCast()
|
||||
|| (card.isFaceDown() && !card.getZone().is(ZoneType.Battlefield) && card.getState(CardStateName.Original).getType().isInstant()))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user