mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fix ignoring Guardian Beast
This commit is contained in:
@@ -265,7 +265,8 @@ public class AiCostDecision extends CostDecisionMakerBase {
|
||||
|
||||
int c = cost.getAbilityAmount(ability);
|
||||
|
||||
final CardCollection typeList = CardLists.getValidCards(player.getGame().getCardsIn(ZoneType.Battlefield), cost.getType().split(";"), player, source, ability);
|
||||
CardCollection typeList = CardLists.getValidCards(player.getGame().getCardsIn(ZoneType.Battlefield), cost.getType().split(";"), player, source, ability);
|
||||
typeList = CardLists.filter(typeList, crd -> crd.canBeControlledBy(player));
|
||||
|
||||
if (typeList.size() < c) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user