mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fix AI not activating Sacrifice This Costs
This commit is contained in:
@@ -24,6 +24,10 @@ public class CostUtil {
|
||||
CostSacrifice sac = (CostSacrifice)part;
|
||||
|
||||
String type = sac.getType();
|
||||
|
||||
if (type.equals("CARDNAME"))
|
||||
continue;
|
||||
|
||||
CardList typeList = AllZoneUtil.getPlayerCardsInPlay(AllZone.getComputerPlayer());
|
||||
typeList = typeList.getValidCards(type.split(","), source.getController(), source);
|
||||
if (ComputerUtil.getCardPreference(source, "SacCost", typeList) == null)
|
||||
|
||||
Reference in New Issue
Block a user