mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Make use of Zone.listValueOf in StaticAbility_Continuous.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user