mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- More fixeing the check in isPreferredTarget AI function.
This commit is contained in:
@@ -945,7 +945,10 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
|||||||
|
|
||||||
// Only care about combatants during combat
|
// Only care about combatants during combat
|
||||||
if (game.getPhaseHandler().inCombat() && origin.equals(ZoneType.Battlefield)) {
|
if (game.getPhaseHandler().inCombat() && origin.equals(ZoneType.Battlefield)) {
|
||||||
list = CardLists.getValidCards(list, "Card.attacking,Card.blocking", null, null);
|
CardCollection newList = CardLists.getValidCards(list, "Card.attacking,Card.blocking", null, null);
|
||||||
|
if (!newList.isEmpty() || !sa.isTrigger()) {
|
||||||
|
list = newList;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user