- Make use of Zone.listValueOf in StaticAbility_Continuous.

This commit is contained in:
Sloth
2011-10-14 12:47:08 +00:00
parent 2d39c04f9e
commit 261b73d4d5

View File

@@ -330,13 +330,9 @@ public class StaticAbility_Continuous {
// non - CharacteristicDefining
CardList affectedCards = new CardList();
String[] affectedZones = null;
if (params.containsKey("AffectedZone")) {
affectedZones = params.get("AffectedZone").split(",");
for (String az : affectedZones) {
affectedCards.addAll(AllZoneUtil.getCardsIn(Zone.smartValueOf(az)));
}
affectedCards.addAll(AllZoneUtil.getCardsIn(Zone.listValueOf(params.get("AffectedZone"))));
} else {
affectedCards = AllZoneUtil.getCardsIn(Zone.Battlefield);
}