mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fixed AF ChangeZone with the Origin All.
This commit is contained in:
@@ -242,7 +242,7 @@ public final class AbilityFactoryChangeZone {
|
||||
public static boolean isHidden(final String origin, final boolean hiddenOverride) {
|
||||
List<ZoneType> zone = ZoneType.listValueOf(origin);
|
||||
|
||||
if (hiddenOverride || zone == null) {
|
||||
if (hiddenOverride || zone.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,10 @@ public enum ZoneType {
|
||||
public static List<ZoneType> listValueOf(final String values) {
|
||||
final List<ZoneType> result = new ArrayList<ZoneType>();
|
||||
for (final String s : values.split("[, ]+")) {
|
||||
result.add(ZoneType.smartValueOf(s));
|
||||
ZoneType zt = ZoneType.smartValueOf(s);
|
||||
if (zt != null) {
|
||||
result.add(zt);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user