mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- For now, limit Nykthos, Shrine to Nyx activations to abilities coming from cards in hand, on the battlefield or in command zone (fixes some more wasted activations).
This commit is contained in:
@@ -54,7 +54,7 @@ public class ChooseColorAi extends SpellAbilityAi {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
final CardCollectionView cards = ai.getCardsIn(new ZoneType[]{ZoneType.Hand, ZoneType.Battlefield, ZoneType.Graveyard, ZoneType.Exile, ZoneType.Command});
|
final CardCollectionView cards = ai.getCardsIn(new ZoneType[] {ZoneType.Hand, ZoneType.Battlefield, ZoneType.Command});
|
||||||
List<SpellAbility> all = ComputerUtilAbility.getSpellAbilities(cards, ai);
|
List<SpellAbility> all = ComputerUtilAbility.getSpellAbilities(cards, ai);
|
||||||
|
|
||||||
// TODO: this is inexact for the purpose, assuming that each land can serve as at least some form of mana source.
|
// TODO: this is inexact for the purpose, assuming that each land can serve as at least some form of mana source.
|
||||||
@@ -84,6 +84,7 @@ public class ChooseColorAi extends SpellAbilityAi {
|
|||||||
testSa.setActivatingPlayer(ai);
|
testSa.setActivatingPlayer(ai);
|
||||||
if (((PlayerControllerAi)ai.getController()).getAi().canPlaySa(testSa) == AiPlayDecision.WillPlay) {
|
if (((PlayerControllerAi)ai.getController()).getAi().canPlaySa(testSa) == AiPlayDecision.WillPlay) {
|
||||||
// the AI is willing to play the spell
|
// the AI is willing to play the spell
|
||||||
|
System.out.println("Willing to play " + testSa + " for " + testSa.getHostCard());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user