mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Made getAffectedCards in StaticAbility_Continuous compatible with the new AllZoneUtil.getCardsIn function.
This commit is contained in:
@@ -329,14 +329,17 @@ public class StaticAbility_Continuous {
|
||||
}
|
||||
|
||||
// non - CharacteristicDefining
|
||||
CardList affectedCards;
|
||||
Zone affectedZone = Zone.Battlefield; // default
|
||||
CardList affectedCards = new CardList();
|
||||
String[] affectedZones = null;
|
||||
|
||||
if (params.containsKey("AffectedZone")) {
|
||||
affectedZone = Zone.smartValueOf(params.get("AffectedZone"));
|
||||
affectedZones = params.get("AffectedZone").split(",");
|
||||
for (String az : affectedZones) {
|
||||
affectedCards.addAll(AllZoneUtil.getCardsIn(Zone.smartValueOf(az)));
|
||||
}
|
||||
} else {
|
||||
affectedCards = AllZoneUtil.getCardsIn(Zone.Battlefield);
|
||||
}
|
||||
|
||||
affectedCards = AllZoneUtil.getCardsIn(affectedZone);
|
||||
|
||||
if (params.containsKey("Affected") && !params.get("Affected").contains(",")) {
|
||||
if (params.get("Affected").contains("Self")) {
|
||||
|
||||
Reference in New Issue
Block a user