Add ZA (Phase 4) BiS lists for all specs

Populate Zul'Aman gear for all 9 classes x 3 specs from the wowtbc.gg
page-data JSON, using the same per-phase `bis` extraction (group/raid
variant preferred) as the earlier tiers. ZA becomes the fourth phase in
PHASE_ORDER and the new default, so the progress bar now measures
completion against ZA.

Shared lists mirror the existing phase conventions: Discipline = Holy,
BM = MM, Combat = Subtlety, and all three warlock specs share one ZA
list. Relic entries (idols/librams/totems) stay omitted like T4-T6.

Two source corrections are folded in: one site data bug where Holy
Paladin's ZA main hand pointed at Hammer of Sanctification (Sunwell
only) is replaced with the T6 pick, Crystal Spire of Karabor, and
canonical item names replace the site's case/typo variants.

Tests: 88 passing, including ZA coverage, shared-list invariants, and
latest-phase progress against ZA.
This commit is contained in:
dfj committed 2026-10-24 00:42:37 +02:00
1 parent 48040c3ae1
commit 907d274b3a
7 files changed
+556 -41

No files matched your search

+8 -6
View File
@@ -254,12 +254,12 @@ describe("latest phase progress", function()
it("exposes the latest phase and nil ratio while stats load", function()
local data = ns.Amibis:CompareGear()
expect(data.latestPhase).toEqual("T6")
expect(data.latestPhase).toEqual("ZA")
expect(data.latestCompletionRatio).toBeNil()
end)
it("measures progress against the latest phase, not the selected one", function()
local latestList = ns.Data.BISLists:GetBISList("PRIEST", "Shadow", "T6")
local latestList = ns.Data.BISLists:GetBISList("PRIEST", "Shadow", "ZA")
local oldList = ns.Data.BISLists:GetBISList("PRIEST", "Shadow", "T4")
for slot, entry in pairs(oldList) do
MockItems[entry.itemID] = {
@@ -283,16 +283,18 @@ describe("latest phase progress", function()
AmibisDB.selectedPhase = "T4"
local data = ns.Amibis:CompareGear()
expect(data.phase).toEqual("T4")
expect(data.latestPhase).toEqual("T6")
expect(data.latestPhase).toEqual("ZA")
expect(ns.Amibis:GetCompletionRatio(data)).toBeCloseTo(1.0)
expect(data.latestCompletionRatio < 1.0).toBeTruthy()
expect(data.latestCompletionRatio > 0.3).toBeTruthy()
end)
it("ratio matches for T6-only lists (latest equals selected)", function()
local list = ns.Data.BISLists:GetBISList("PALADIN", "Protection", "T6")
it("ratio matches when the latest phase is also selected", function()
local list = ns.Data.BISLists:GetBISList("PRIEST", "Shadow", "ZA")
expect(list).toBeTruthy()
AmibisDB.selectedPhase = "ZA"
local data = ns.Amibis:CompareGear()
expect(data.latestPhase).toEqual("T6")
expect(data.phase).toEqual("ZA")
expect(data.latestPhase).toEqual("ZA")
end)
end)