mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fixed a crash with cruel ultimatum when the computer had no cards in graveyard.
This commit is contained in:
@@ -7753,11 +7753,13 @@ public class CardFactory implements NewConstants {
|
||||
setTargetCard((Card) check);
|
||||
}
|
||||
} else {
|
||||
if(creature.size() > 0) {
|
||||
Card biggest = creature.get(0);
|
||||
for(int i = 0; i < creature.size(); i++)
|
||||
if(biggest.getNetAttack() < creature.get(i).getNetAttack()) biggest = creature.get(i);
|
||||
setTargetCard(biggest);
|
||||
}
|
||||
}
|
||||
Card c2 = getTargetCard();
|
||||
PlayerZone grave = AllZone.getZone(Constant.Zone.Graveyard, card.getController());
|
||||
if(AllZone.GameAction.isCardInZone(c2, grave)) {
|
||||
|
||||
Reference in New Issue
Block a user