mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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
|
// non - CharacteristicDefining
|
||||||
CardList affectedCards = new CardList();
|
CardList affectedCards = new CardList();
|
||||||
String[] affectedZones = null;
|
|
||||||
|
|
||||||
if (params.containsKey("AffectedZone")) {
|
if (params.containsKey("AffectedZone")) {
|
||||||
affectedZones = params.get("AffectedZone").split(",");
|
affectedCards.addAll(AllZoneUtil.getCardsIn(Zone.listValueOf(params.get("AffectedZone"))));
|
||||||
for (String az : affectedZones) {
|
|
||||||
affectedCards.addAll(AllZoneUtil.getCardsIn(Zone.smartValueOf(az)));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
affectedCards = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
affectedCards = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user