mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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:
@@ -84,7 +84,16 @@ public class HumanPlay {
|
||||
|
||||
// extra play check
|
||||
if (sa.isSpell() && !sa.canPlay()) {
|
||||
return false;
|
||||
// Exceptional cases where canPlay should not run
|
||||
boolean exemptFromCheck = false;
|
||||
if (source.hasSuspend() && p.getGame().isCardExiled(source) && source.getCounters(CounterType.TIME) == 0) {
|
||||
// A card is about to ETB from Suspend
|
||||
exemptFromCheck = true;
|
||||
}
|
||||
|
||||
if (!exemptFromCheck) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (flippedToCast && !castFaceDown) {
|
||||
|
||||
@@ -1506,7 +1506,6 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
||||
|
||||
@Override
|
||||
public boolean playSaFromPlayEffect(final SpellAbility tgtSA) {
|
||||
tgtSA.setSVar("IsCastFromPlayEffect", "True");
|
||||
return HumanPlay.playSpellAbility(this, player, tgtSA);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user