ControlGain: Fix NPE

This commit is contained in:
tool4EvEr
2022-07-19 17:53:11 +02:00
parent e3c3dd9fc8
commit 58f8d55977
5 changed files with 33 additions and 37 deletions

View File

@@ -45,7 +45,7 @@ public class CreatureEvaluator implements Function<Card, Integer> {
value += addValue(toughness * 10, "toughness: " + toughness);
// because backside is always stronger the potential makes it better than a single faced card
if (c.hasKeyword(Keyword.DAYBOUND)) {
if (c.hasKeyword(Keyword.DAYBOUND) && c.hasBackSide()) {
value += addValue(power * 10, "transforming");
}
}