change zone ai won't crash with oob

This commit is contained in:
Maxmtg
2014-02-11 09:37:55 +00:00
parent fb2287b8c2
commit 720a44b4fd

View File

@@ -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";