- Fixed a possible IllegalArgumentException in ChangeZoneAllAi.

This commit is contained in:
Sloth
2015-03-23 13:41:33 +00:00
parent 56ef227d64
commit 2f83db4972

View File

@@ -198,7 +198,7 @@ public class ChangeZoneAllAi extends SpellAbilityAi {
// Change Zone All, can be any type moving from one zone to another // Change Zone All, can be any type moving from one zone to another
final ZoneType destination = ZoneType.smartValueOf(sa.getParam("Destination")); final ZoneType destination = ZoneType.smartValueOf(sa.getParam("Destination"));
final ZoneType origin = ZoneType.smartValueOf(sa.getParam("Origin")); final ZoneType origin = ZoneType.listValueOf(sa.getParam("Origin")).get(0);
final Player opp = ai.getOpponent(); final Player opp = ai.getOpponent();
final CardCollectionView humanType = AbilityUtils.filterListByType(opp.getCardsIn(origin), sa.getParam("ChangeType"), sa); final CardCollectionView humanType = AbilityUtils.filterListByType(opp.getCardsIn(origin), sa.getParam("ChangeType"), sa);