mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Clean up
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user