Fix extra horn bug for Wraith Unis

This commit is contained in:
Emi Matchu 2021-03-23 18:59:06 -07:00
parent 7c9f4828f9
commit bfd2d78d76

View file

@ -181,6 +181,12 @@ export function getVisibleLayers(petAppearance, itemAppearances) {
return false;
}
// A pet appearance can also restrict its own zones. The Wraith Uni is an
// interesting example: it has a horn, but its zone restrictions hide it!
if (layer.source === "pet" && petRestrictedZoneIds.has(layer.zone.id)) {
return false;
}
return true;
});
visibleLayers.sort((a, b) => a.zone.depth - b.zone.depth);