This commit is contained in:
tool4EvEr
2021-07-04 20:07:44 +02:00
parent af04a994bb
commit db3accfa50
3 changed files with 18 additions and 25 deletions

View File

@@ -2569,7 +2569,6 @@ public class AbilityUtils {
// Count$ThisTurnCast <Valid>
// Count$LastTurnCast <Valid>
if (sq[0].startsWith("ThisTurnCast") || sq[0].startsWith("LastTurnCast")) {
final String[] workingCopy = l[0].split("_");
final String validFilter = workingCopy[1];

View File

@@ -97,7 +97,6 @@ public class CostAdjustment {
private static void applyRaise(final Cost cost, final SpellAbility sa, final StaticAbility st) {
final Card hostCard = st.getHostCard();
final Card card = sa.getHostCard();
if (!checkRequirement(sa, st)) {
return;
@@ -138,7 +137,7 @@ public class CostAdjustment {
count = Integer.parseInt(amount);
} else {
if (st.hasParam("AffectedAmount")) {
count = AbilityUtils.calculateAmount(card, st.hasSVar(amount) ? st.getSVar(amount) : amount, sa);
count = AbilityUtils.calculateAmount(hostCard, st.hasSVar(amount) ? st.getSVar(amount) : amount, sa);
} else {
count = AbilityUtils.calculateAmount(hostCard, amount, st);
}
@@ -296,12 +295,10 @@ public class CostAdjustment {
final CardCollectionView toSacList = sa.getHostCard().getController().getController().choosePermanentsToSacrifice(sa, 0, 1, canOffer, offeringType);
if (!toSacList.isEmpty()) {
toSac = toSacList.getFirst();
}
else {
if (toSacList.isEmpty()) {
return;
}
toSac = toSacList.getFirst();
cost.subtractManaCost(toSac.getManaCost());
@@ -315,12 +312,10 @@ public class CostAdjustment {
final CardCollectionView toSacList = sa.getHostCard().getController().getController().choosePermanentsToSacrifice(sa, 0, 1, canEmerge, "Creature");
if (!toSacList.isEmpty()) {
toSac = toSacList.getFirst();
}
else {
if (toSacList.isEmpty()) {
return;
}
toSac = toSacList.getFirst();
cost.decreaseGenericMana(toSac.getCMC());

View File

@@ -87,7 +87,6 @@ public class Untap extends Phase {
* @return a boolean.
*/
public static boolean canUntap(final Card c) {
if (c.hasKeyword("CARDNAME doesn't untap during your untap step.")
|| c.hasKeyword("This card doesn't untap during your next untap step.")
|| c.hasKeyword("This card doesn't untap during your next two untap steps.")