Misc cleanup (#1940)

* Misc cleanup

* Fix check passing with no own creatures

* Improve StackDescription for Unsubstantiate
This commit is contained in:
tool4ever
2022-11-21 21:37:24 +01:00
committed by GitHub
parent 35365c0893
commit ac3d9ce8ee
53 changed files with 55 additions and 63 deletions

View File

@@ -2489,7 +2489,7 @@ public class ComputerUtilCombat {
if (combat != null) {
// 1. If the card that spawned the attacker was sent at a planeswalker, attack the same. Consider improving.
GameEntity def = combat.getDefenderByAttacker(sa.getHostCard());
if (def != null && def instanceof Card && ((Card)def).isPlaneswalker() && defenders.contains(def)) {
if (def instanceof Card && ((Card)def).isPlaneswalker() && defenders.contains(def)) {
return def;
}
// 2. Otherwise, go through the list of options one by one, choose the first one that can't be blocked profitably.