mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
MH3 9 cards (#5380)
This commit is contained in:
@@ -223,7 +223,15 @@ public class CostAdjustment {
|
||||
// Reduce cost
|
||||
int sumGeneric = 0;
|
||||
if (sa.hasParam("ReduceCost")) {
|
||||
sumGeneric += AbilityUtils.calculateAmount(originalCard, sa.getParam("ReduceCost"), sa);
|
||||
String cst = sa.getParam("ReduceCost");
|
||||
String amt = sa.getParamOrDefault("ReduceAmount", cst);
|
||||
int num = AbilityUtils.calculateAmount(originalCard, amt, sa);
|
||||
|
||||
if (sa.hasParam("ReduceAmount") && num > 0) {
|
||||
cost.subtractManaCost(new ManaCost(new ManaCostParser(Strings.repeat(cst + " ", num))));
|
||||
} else {
|
||||
sumGeneric += num;
|
||||
}
|
||||
}
|
||||
|
||||
while (!reduceAbilities.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user