mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fix Suspend & CantBeCast
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -625,7 +625,6 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
if (energyPayment <= 0)
|
||||
return true;
|
||||
|
||||
|
||||
return canPayEnergy(energyPayment) && loseEnergy(energyPayment) > -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user