Remove obsolete logic (#5090)

This commit is contained in:
tool4ever
2024-04-21 10:27:11 +02:00
committed by GitHub
parent 83ad6a5423
commit 9fb6d8a1f6
5 changed files with 4 additions and 13 deletions

View File

@@ -301,15 +301,12 @@ public final class GameActionUtil {
SpellAbility newSA = null; SpellAbility newSA = null;
boolean changedManaCost = false;
if (o.getPayManaCost() == PayManaCost.NO) { if (o.getPayManaCost() == PayManaCost.NO) {
newSA = sa.copyWithNoManaCost(activator); newSA = sa.copyWithNoManaCost(activator);
newSA.setBasicSpell(false); newSA.setBasicSpell(false);
changedManaCost = true;
} else if (o.getAltManaCost() != null) { } else if (o.getAltManaCost() != null) {
newSA = sa.copyWithManaCostReplaced(activator, o.getAltManaCost()); newSA = sa.copyWithManaCostReplaced(activator, o.getAltManaCost());
newSA.setBasicSpell(false); newSA.setBasicSpell(false);
changedManaCost = true;
} else { } else {
if (altCostOnly) { if (altCostOnly) {
continue; continue;
@@ -328,12 +325,6 @@ public final class GameActionUtil {
sar.setZone(null); sar.setZone(null);
newSA.setMayPlay(o); newSA.setMayPlay(o);
if (changedManaCost) {
if ("0".equals(sa.getParam("ActivationLimit")) && sa.getHostCard().getManaCost().isNoCost()) {
sar.setLimitToCheck(null);
}
}
final StringBuilder sb = new StringBuilder(sa.getDescription()); final StringBuilder sb = new StringBuilder(sa.getDescription());
if (!source.equals(host)) { if (!source.equals(host)) {
sb.append(" by "); sb.append(" by ");

View File

@@ -3,5 +3,5 @@ ManaCost:no cost
Colors:blue Colors:blue
Types:Sorcery Types:Sorcery
K:Suspend:4:U K:Suspend:4:U
A:SP$ Draw | NumCards$ 3 | ValidTgts$ Player | TgtPrompt$ Choose a player | SpellDescription$ Target player draws three cards. | ActivationLimit$ 0 A:SP$ Draw | NumCards$ 3 | ValidTgts$ Player | TgtPrompt$ Choose a player | SpellDescription$ Target player draws three cards.
Oracle:Suspend 4—{U} (Rather than cast this card from your hand, pay {U} and exile it with four time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.)\nTarget player draws three cards. Oracle:Suspend 4—{U} (Rather than cast this card from your hand, pay {U} and exile it with four time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.)\nTarget player draws three cards.

View File

@@ -3,8 +3,8 @@ ManaCost:no cost
Colors:green Colors:green
Types:Sorcery Types:Sorcery
K:Suspend:4:G K:Suspend:4:G
A:SP$ Token | TokenAmount$ 2 | TokenScript$ g_4_4_rhino_trample | SpellDescription$ Create two 4/4 green Rhino creature tokens with trample.
SVar:NonStackingEffect:True SVar:NonStackingEffect:True
AI:RemoveDeck:Random AI:RemoveDeck:Random
A:SP$ Token | TokenAmount$ 2 | TokenScript$ g_4_4_rhino_trample | SpellDescription$ Create two 4/4 green Rhino creature tokens with trample.
DeckHas:Ability$Token & Type$Rhino DeckHas:Ability$Token & Type$Rhino
Oracle:Suspend 4—{G} (Rather than cast this card from your hand, pay {G} and exile it with four time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.)\nCreate two 4/4 green Rhino creature tokens with trample. Oracle:Suspend 4—{G} (Rather than cast this card from your hand, pay {G} and exile it with four time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.)\nCreate two 4/4 green Rhino creature tokens with trample.

View File

@@ -3,6 +3,6 @@ ManaCost:no cost
Colors:blue Colors:blue
Types:Instant Arcane Types:Instant Arcane
K:Splice:Arcane:1 U K:Splice:Arcane:1 U
A:SP$ Draw | Cost$ 0 | NumCards$ 1 | ActivationLimit$ 0 | SpellDescription$ Draw a card. A:SP$ Draw | NumCards$ 1 | SpellDescription$ Draw a card.
AI:RemoveDeck:Random AI:RemoveDeck:Random
Oracle:(Nonexistent mana costs can't be paid.)\nDraw a card.\nSplice onto Arcane {1}{U} (As you cast an Arcane spell, you may reveal this card from your hand and pay its splice cost. If you do, add this card's effects to that spell.) Oracle:(Nonexistent mana costs can't be paid.)\nDraw a card.\nSplice onto Arcane {1}{U} (As you cast an Arcane spell, you may reveal this card from your hand and pay its splice cost. If you do, add this card's effects to that spell.)

View File

@@ -3,7 +3,7 @@ ManaCost:no cost
Colors:white Colors:white
Types:Sorcery Types:Sorcery
K:Suspend:6:W K:Suspend:6:W
A:SP$ Balance | Cost$ 0 | Valid$ Land | AILogic$ BalanceCreaturesAndLands | SubAbility$ BalanceCreatures | SpellDescription$ Each player chooses a number of lands they control equal to the number of lands controlled by the player who controls the fewest, then sacrifices the rest. Players discard cards and sacrifice creatures the same way. | ActivationLimit$ 0 A:SP$ Balance | Valid$ Land | AILogic$ BalanceCreaturesAndLands | SubAbility$ BalanceCreatures | SpellDescription$ Each player chooses a number of lands they control equal to the number of lands controlled by the player who controls the fewest, then sacrifices the rest. Players discard cards and sacrifice creatures the same way.
SVar:BalanceCreatures:DB$ Balance | Valid$ Creature | SubAbility$ BalanceHands SVar:BalanceCreatures:DB$ Balance | Valid$ Creature | SubAbility$ BalanceHands
SVar:BalanceHands:DB$ Balance | Zone$ Hand SVar:BalanceHands:DB$ Balance | Zone$ Hand
AI:RemoveDeck:All AI:RemoveDeck:All