mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
change zone ai won't crash with oob
This commit is contained in:
@@ -1078,6 +1078,9 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
||||
|
||||
public static Card chooseCardToHiddenOriginChangeZone(ZoneType destination, List<ZoneType> origin, SpellAbility sa, List<Card> fetchList, Player player, final Player decider) {
|
||||
|
||||
if( fetchList.isEmpty() )
|
||||
return null;
|
||||
|
||||
String type = sa.getParam("ChangeType");
|
||||
if (type == null) {
|
||||
type = "Card";
|
||||
|
||||
Reference in New Issue
Block a user