mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user