Fix extra horn bug for Wraith Unis
This commit is contained in:
parent
7c9f4828f9
commit
bfd2d78d76
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue