Merge branch 'master' into 'master'

STX cards + Abundant Harvest

See merge request core-developers/forge!4285
This commit is contained in:
Michael Kamensky
2021-03-27 15:54:25 +00:00
11 changed files with 78 additions and 13 deletions

View File

@@ -225,9 +225,11 @@ public class PlayerProperty {
if (source.getChosenPlayer() == null || !source.getChosenPlayer().equals(player)) {
return false;
}
} else if (property.startsWith("LifeEquals_")) {
int life = AbilityUtils.calculateAmount(source, property.substring(11), null);
if (player.getLife() != life) {
} else if (property.startsWith("life")) {
int life = player.getLife();
int amount = AbilityUtils.calculateAmount(source, property.substring(6), spellAbility);
if (!Expressions.compare(life, property, amount)) {
return false;
}
} else if (property.equals("IsPoisoned")) {