mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
clean up
This commit is contained in:
@@ -990,7 +990,7 @@ public class ComputerUtilMana {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sa.allowsPayingWithShard(m.getSourceCard(), ManaAtom.fromName(s))) {
|
if (!sa.allowsPayingWithShard(sourceCard, ManaAtom.fromName(s))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1008,7 +1008,7 @@ public class ComputerUtilMana {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sa.allowsPayingWithShard(m.getSourceCard(), c)) {
|
if (!sa.allowsPayingWithShard(sourceCard, c)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1020,7 +1020,7 @@ public class ComputerUtilMana {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sa.allowsPayingWithShard(m.getSourceCard(), MagicColor.fromName(m.getOrigProduced()))) {
|
if (!sa.allowsPayingWithShard(sourceCard, MagicColor.fromName(m.getOrigProduced()))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ public class CostAdjustment {
|
|||||||
minMana = Integer.valueOf(staticAbility.getParam("MinMana"));
|
minMana = Integer.valueOf(staticAbility.getParam("MinMana"));
|
||||||
}
|
}
|
||||||
|
|
||||||
final int maxReduction = Math.max(0, manaCost.getConvertedManaCost() - minMana - sumReduced);
|
final int maxReduction = manaCost.getConvertedManaCost() - minMana - sumReduced;
|
||||||
if (maxReduction > 0) {
|
if (maxReduction > 0) {
|
||||||
return Math.min(value, maxReduction);
|
return Math.min(value, maxReduction);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user