Fix Suspend & CantBeCast

This commit is contained in:
tool4EvEr
2021-03-24 21:16:33 +01:00
parent 3a5f85009c
commit fedc92977a
2 changed files with 5 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ import forge.game.spellability.Spell;
import forge.game.spellability.SpellAbility;
import forge.game.spellability.SpellAbilityRestriction;
import forge.game.staticability.StaticAbility;
import forge.game.staticability.StaticAbilityCantBeCast;
import forge.game.trigger.Trigger;
import forge.game.trigger.TriggerHandler;
import forge.game.zone.ZoneType;
@@ -4521,6 +4522,10 @@ public class CardFactoryUtil {
return false;
}
if (StaticAbilityCantBeCast.cantBeCastAbility(this, this.getHostCard(), this.getActivatingPlayer())) {
return false;
}
if (this.getHostCard().isInstant() || this.getHostCard().hasKeyword(Keyword.FLASH)) {
return true;
}

View File

@@ -625,7 +625,6 @@ public class Player extends GameEntity implements Comparable<Player> {
if (energyPayment <= 0)
return true;
return canPayEnergy(energyPayment) && loseEnergy(energyPayment) > -1;
}