mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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;
|
CostSacrifice sac = (CostSacrifice)part;
|
||||||
|
|
||||||
String type = sac.getType();
|
String type = sac.getType();
|
||||||
|
|
||||||
|
if (type.equals("CARDNAME"))
|
||||||
|
continue;
|
||||||
|
|
||||||
CardList typeList = AllZoneUtil.getPlayerCardsInPlay(AllZone.getComputerPlayer());
|
CardList typeList = AllZoneUtil.getPlayerCardsInPlay(AllZone.getComputerPlayer());
|
||||||
typeList = typeList.getValidCards(type.split(","), source.getController(), source);
|
typeList = typeList.getValidCards(type.split(","), source.getController(), source);
|
||||||
if (ComputerUtil.getCardPreference(source, "SacCost", typeList) == null)
|
if (ComputerUtil.getCardPreference(source, "SacCost", typeList) == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user