mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
CardUtil - renamed and made adjustAbilityCost public.
This commit is contained in:
parent
f4166ac3b3
commit
4735e73967
1 changed files with 4 additions and 4 deletions
|
@ -132,7 +132,7 @@ public class CardUtil {
|
|||
* @param increaseCount
|
||||
*/
|
||||
public static void increaseCost(Ability ability, int increaseCount) {
|
||||
adjustCost(ability, -increaseCount);
|
||||
adjustAbilityCost(ability, -increaseCount);
|
||||
adjustAlternativeCosts(ability, -increaseCount);
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ public class CardUtil {
|
|||
* @param reduceCount
|
||||
*/
|
||||
public static void reduceCost(Ability ability, int reduceCount) {
|
||||
adjustCost(ability, reduceCount);
|
||||
adjustAbilityCost(ability, reduceCount);
|
||||
adjustAlternativeCosts(ability, reduceCount);
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,7 @@ public class CardUtil {
|
|||
* @param reduceCount
|
||||
*/
|
||||
public static void adjustCost(SpellAbility spellAbility, int reduceCount) {
|
||||
CardUtil.adjustCost((Ability) spellAbility, reduceCount);
|
||||
CardUtil.adjustAbilityCost((Ability) spellAbility, reduceCount);
|
||||
adjustAlternativeCosts(spellAbility, reduceCount);
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ public class CardUtil {
|
|||
* @param ability
|
||||
* @param reduceCount
|
||||
*/
|
||||
private static void adjustCost(Ability ability, int reduceCount) {
|
||||
public static void adjustAbilityCost(Ability ability, int reduceCount) {
|
||||
ManaCosts<ManaCost> adjustedCost = adjustCost(ability.getManaCostsToPay(), reduceCount);
|
||||
ability.getManaCostsToPay().clear();
|
||||
ability.getManaCostsToPay().addAll(adjustedCost);
|
||||
|
|
Loading…
Reference in a new issue