summaryrefslogtreecommitdiff
path: root/includes/system/species.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/system/species.inc')
-rw-r--r--includes/system/species.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/system/species.inc b/includes/system/species.inc
index 41b06fe..8f4368e 100644
--- a/includes/system/species.inc
+++ b/includes/system/species.inc
@@ -9,11 +9,11 @@ function species(array $members, string $id, string $name) { global $systemID; g
$members = [
...array_map(function ($i) use ($systemID) { $i["_system"] = $systemID; return $i; },array_filter($members, function ($i) use ($systemID) {
global $travelling;
- return !$travelling[$i['id']]['travelling'];
+ return !($travelling[$i['id']]['travelling'] || (isset($travelling[$i['id']]['equestria']) && $travelling[$i['id']]['equestria']));
})),
...array_map(function ($i) use ($systemID) { $i["_system"] = $systemID === "gdapd" ? "ynmuc" : "gdapd"; return $i; }, array_filter(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . ($systemID === "gdapd" ? "ynmuc" : "gdapd") . "/members.json"), true), function ($i) use ($id, $systemID) {
global $travelling;
- return $travelling[$i['id']]['travelling'] && in_array($id, parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i['id'] . ".json"), true))["species"]);
+ return $travelling[$i['id']]['travelling'] && !$travelling[$i['id']]['equestria'] && in_array($id, parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $i['id'] . ".json"), true))["species"]);
}))
];