- Simple AI logic extension to make the Partner With commanders AI-playable.

This commit is contained in:
Agetian
2018-05-27 17:29:57 +03:00
parent e031ac8176
commit 053726519c
2 changed files with 4 additions and 2 deletions

View File

@@ -152,7 +152,9 @@ public class ChangeZoneAi extends SpellAbilityAi {
return doReturnCommanderLogic(sa, aiPlayer);
}
if ("IfNotBuffed".equals(sa.getParam("AILogic"))) {
if ("Always".equals(sa.getParam("AILogic"))) {
return true;
} else if ("IfNotBuffed".equals(sa.getParam("AILogic"))) {
if (ComputerUtilCard.isUselessCreature(aiPlayer, sa.getHostCard())) {
return true; // debuffed by opponent's auras to the level that it becomes useless
}