Re: Expanding Cumulative Upkeep
I was hoping to add Sacrifice<amount/valid> upkeep costs, but it seems to be a bit beyond me.
Sorry. I got as far as adding this bit for the AI in shouldPayCost:
- Code: Select all
} else if (part instanceof CostSacrifice) {
CardList typeList = compy.getCardsIn(ZoneType.Battlefield);
typeList = typeList.getValidCards(part.getType().split(";"), compy, hostCard);
final int sacAmount = ((CostSacrifice) part).convertAmount();
if ((typeList.size() - sacAmount) < 6) {
return false; //Don't pay sac cost if it would leave AI with fewer than 6 of the valid type
}
}