mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Merge branch 'conditions' into 'master'
Fix ConditionLifeTotal See merge request core-developers/forge!4192
This commit is contained in:
@@ -374,12 +374,12 @@ public class SpellAbilityCondition extends SpellAbilityVariables {
|
||||
|
||||
if (this.getLifeTotal() != null) {
|
||||
int life = 1;
|
||||
if (this.getLifeTotal().equals("You")) {
|
||||
life = activator.getLife();
|
||||
}
|
||||
if (this.getLifeTotal().equals("OpponentSmallest")) {
|
||||
life = activator.getOpponentsSmallestLifeTotal();
|
||||
}
|
||||
else {
|
||||
life = AbilityUtils.getDefinedPlayers(host, this.getLifeTotal(), sa).getFirst().getLife();
|
||||
}
|
||||
|
||||
int right = 1;
|
||||
final String rightString = this.getLifeAmount().substring(2);
|
||||
|
||||
Reference in New Issue
Block a user