mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fix lifeTotal Condition not using CalculateAmount (makes Timely Reinforcement first ability work properly)
This commit is contained in:
@@ -307,7 +307,7 @@ public class SpellAbilityCondition extends SpellAbilityVariables {
|
|||||||
int right = 1;
|
int right = 1;
|
||||||
final String rightString = this.getLifeAmount().substring(2);
|
final String rightString = this.getLifeAmount().substring(2);
|
||||||
if (rightString.equals("X")) {
|
if (rightString.equals("X")) {
|
||||||
right = CardFactoryUtil.xCount(sa.getHostCard(), sa.getHostCard().getSVar("X"));
|
right = AbilityUtils.calculateAmount(sa.getHostCard(), sa.getHostCard().getSVar("X"), sa);
|
||||||
} else {
|
} else {
|
||||||
right = Integer.parseInt(this.getLifeAmount().substring(2));
|
right = Integer.parseInt(this.getLifeAmount().substring(2));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user