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;
boolean changedManaCost = false;
if (o.getPayManaCost() == PayManaCost.NO) {
newSA = sa.copyWithNoManaCost(activator);
newSA.setBasicSpell(false);
changedManaCost = true;
} else if (o.getAltManaCost() != null) {
newSA = sa.copyWithManaCostReplaced(activator, o.getAltManaCost());
newSA.setBasicSpell(false);
changedManaCost = true;
} else {
if (altCostOnly) {
continue;
@@ -328,12 +325,6 @@ public final class GameActionUtil {
sar.setZone(null);
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());
if (!source.equals(host)) {
sb.append(" by ");