mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Simple AI logic extension to make the Partner With commanders AI-playable.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user