From bfd2d78d767ece76fd2300b97c4e5f4d1f6c7813 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 23 Mar 2021 18:59:06 -0700 Subject: [PATCH] Fix extra horn bug for Wraith Unis --- src/app/components/useOutfitAppearance.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/components/useOutfitAppearance.js b/src/app/components/useOutfitAppearance.js index 2f56503..8ccbf1d 100644 --- a/src/app/components/useOutfitAppearance.js +++ b/src/app/components/useOutfitAppearance.js @@ -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);