mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user