- Patched up PlayAi to enable the AI to play Hideaway lands. Marking the relevant cards as playable.

- Some improvement to Volrath's Shapeshifter AI.
This commit is contained in:
Agetian
2017-10-15 13:38:17 +00:00
parent ac70e6504a
commit 0d4a837be6
8 changed files with 22 additions and 21 deletions

View File

@@ -2232,8 +2232,12 @@ public class Card extends GameEntity implements Comparable<Card> {
}
public final FCollectionView<SpellAbility> getBasicSpells() {
return getBasicSpells(currentState);
}
public final FCollectionView<SpellAbility> getBasicSpells(CardState state) {
final FCollection<SpellAbility> res = new FCollection<>();
for (final SpellAbility sa : currentState.getNonManaAbilities()) {
for (final SpellAbility sa : state.getNonManaAbilities()) {
if (sa.isSpell() && sa.isBasicSpell()) {
res.add(sa);
}