- Fixed IllegalArgumentException caused by multiple origins in ChangeZoneAll AI.

This commit is contained in:
Sloth
2013-06-25 08:03:09 +00:00
parent 3f4839cfe5
commit ef8af1a2b6

View File

@@ -28,7 +28,7 @@ public class ChangeZoneAllAi extends SpellAbilityAi {
final Cost abCost = sa.getPayCosts(); final Cost abCost = sa.getPayCosts();
final Card source = sa.getSourceCard(); final Card source = sa.getSourceCard();
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);
if (abCost != null) { if (abCost != null) {
// AI currently disabled for these costs // AI currently disabled for these costs