- Renamed two cards to match the current standard.

- Implemented basic AI playability of AssignGroup (Friend/Foe) cards based on NeedsToPlayVar.
- Will need separate AI logic for different cases to improve further (can be tested in canPlayAI).
This commit is contained in:
Agetian
2018-06-04 07:35:47 +03:00
parent 1ac0eb83cf
commit b43a313793
4 changed files with 19 additions and 4 deletions

View File

@@ -11,8 +11,11 @@ import forge.game.spellability.SpellAbility;
public class AssignGroupAi extends SpellAbilityAi {
public AssignGroupAi() {
// TODO Auto-generated constructor stub
protected boolean canPlayAI(Player ai, SpellAbility sa) {
// TODO: Currently this AI relies on the card-specific limiting hints (NeedsToPlay / NeedsToPlayVar),
// otherwise the AI considers the card playable.
return true;
}
public SpellAbility chooseSingleSpellAbility(Player player, SpellAbility sa, List<SpellAbility> spells, Map<String, Object> params) {