mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Misc cleanup (#1940)
* Misc cleanup * Fix check passing with no own creatures * Improve StackDescription for Unsubstantiate
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user