mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +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
|
* @param increaseCount
|
||||||
*/
|
*/
|
||||||
public static void increaseCost(Ability ability, int increaseCount) {
|
public static void increaseCost(Ability ability, int increaseCount) {
|
||||||
adjustCost(ability, -increaseCount);
|
adjustAbilityCost(ability, -increaseCount);
|
||||||
adjustAlternativeCosts(ability, -increaseCount);
|
adjustAlternativeCosts(ability, -increaseCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ public class CardUtil {
|
||||||
* @param reduceCount
|
* @param reduceCount
|
||||||
*/
|
*/
|
||||||
public static void reduceCost(Ability ability, int reduceCount) {
|
public static void reduceCost(Ability ability, int reduceCount) {
|
||||||
adjustCost(ability, reduceCount);
|
adjustAbilityCost(ability, reduceCount);
|
||||||
adjustAlternativeCosts(ability, reduceCount);
|
adjustAlternativeCosts(ability, reduceCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ public class CardUtil {
|
||||||
* @param reduceCount
|
* @param reduceCount
|
||||||
*/
|
*/
|
||||||
public static void adjustCost(SpellAbility spellAbility, int reduceCount) {
|
public static void adjustCost(SpellAbility spellAbility, int reduceCount) {
|
||||||
CardUtil.adjustCost((Ability) spellAbility, reduceCount);
|
CardUtil.adjustAbilityCost((Ability) spellAbility, reduceCount);
|
||||||
adjustAlternativeCosts(spellAbility, reduceCount);
|
adjustAlternativeCosts(spellAbility, reduceCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ public class CardUtil {
|
||||||
* @param ability
|
* @param ability
|
||||||
* @param reduceCount
|
* @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);
|
ManaCosts<ManaCost> adjustedCost = adjustCost(ability.getManaCostsToPay(), reduceCount);
|
||||||
ability.getManaCostsToPay().clear();
|
ability.getManaCostsToPay().clear();
|
||||||
ability.getManaCostsToPay().addAll(adjustedCost);
|
ability.getManaCostsToPay().addAll(adjustedCost);
|
||||||
|
|
Loading…
Reference in a new issue