mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed AI for ExileFromHandCost.
This commit is contained in:
@@ -500,7 +500,7 @@ public class Cost_Payment {
|
|||||||
if (cost.getExileFromHandThis())
|
if (cost.getExileFromHandThis())
|
||||||
exileFromHandCard.add(card);
|
exileFromHandCard.add(card);
|
||||||
else
|
else
|
||||||
exileFromHandCard = ComputerUtil.chooseExileType(cost.getExileFromHandType(), card, ability.getTargetCard(), cost.getExileFromHandAmount());
|
exileFromHandCard = ComputerUtil.chooseExileFromHandType(cost.getExileFromHandType(), card, ability.getTargetCard(), cost.getExileFromHandAmount());
|
||||||
|
|
||||||
if (exileFromHandCard.size() != cost.getExileFromHandAmount()){
|
if (exileFromHandCard.size() != cost.getExileFromHandAmount()){
|
||||||
System.out.println("Couldn't find a valid card to exile for: "+card.getName());
|
System.out.println("Couldn't find a valid card to exile for: "+card.getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user