Merge branch 'explo' into 'master'

Fix Explosive Singularity not being castable when no untapped creature

See merge request core-developers/forge!6370
This commit is contained in:
Michael Kamensky
2022-03-08 11:16:29 +00:00
2 changed files with 4 additions and 4 deletions

View File

@@ -94,12 +94,12 @@ public class CreatureEvaluator implements Function<Card, Integer> {
if (c.hasKeyword(Keyword.VIGILANCE)) { if (c.hasKeyword(Keyword.VIGILANCE)) {
value += addValue((power * 5) + (toughness * 5), "vigilance"); value += addValue((power * 5) + (toughness * 5), "vigilance");
} }
if (c.hasKeyword(Keyword.WITHER)) {
value += addValue(power * 10, "Wither");
}
if (c.hasKeyword(Keyword.INFECT)) { if (c.hasKeyword(Keyword.INFECT)) {
value += addValue(power * 15, "infect"); value += addValue(power * 15, "infect");
} }
else if (c.hasKeyword(Keyword.WITHER)) {
value += addValue(power * 10, "Wither");
}
value += addValue(c.getKeywordMagnitude(Keyword.RAMPAGE), "rampage"); value += addValue(c.getKeywordMagnitude(Keyword.RAMPAGE), "rampage");
value += addValue(c.getKeywordMagnitude(Keyword.AFFLICT) * 5, "afflict"); value += addValue(c.getKeywordMagnitude(Keyword.AFFLICT) * 5, "afflict");
} }

View File

@@ -184,7 +184,7 @@ public class CostTapType extends CostPartWithList {
} }
final int amount = this.getAbilityAmount(ability); final int amount = this.getAbilityAmount(ability);
return typeList.size() != 0 && typeList.size() >= amount; return typeList.size() >= amount;
} }
/* (non-Javadoc) /* (non-Javadoc)