mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Changing Parameter name for calculateAmount()
This commit is contained in:
@@ -435,10 +435,10 @@ public class AbilityFactory {
|
|||||||
return abSub;
|
return abSub;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int calculateAmount(Card card, String counterNum, SpellAbility ability){
|
public static int calculateAmount(Card card, String amount, SpellAbility ability){
|
||||||
if (counterNum.matches("X"))
|
if (amount.matches("X"))
|
||||||
{
|
{
|
||||||
String calcX[] = card.getSVar(counterNum).split("\\$");
|
String calcX[] = card.getSVar(amount).split("\\$");
|
||||||
if (calcX.length == 1 || calcX[1].equals("none"))
|
if (calcX.length == 1 || calcX[1].equals("none"))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@@ -454,7 +454,7 @@ public class AbilityFactory {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Integer.parseInt(counterNum);
|
return Integer.parseInt(amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user