Fix /amibis spec clear being stored as a spec override
The generic "spec <name>" branch matched before the "spec clear" check, so clearing an override set overrideSpec to "Clear" and the UI then looked for a spec called Clear instead of falling back to auto-detection. Check the clear command first, collapse whitespace so "spec clear" parses, and refresh the frame immediately when the override changes. Spec names are also title-cased per word now, so "/amibis spec beast mastery" resolves to "Beast Mastery". Add test_slash.lua covering set/clear, case/whitespace normalization, and the clear-as-spec-name regression. 93 tests passing.
This commit is contained in:
1 parent
907d274b3a
commit
912ed8f255
4 files changed
+76
-5
No files matched your search
@@ -26,6 +26,7 @@ apt-get download lua5.4 && dpkg -x lua5.4_*.deb /tmp/lua && /tmp/lua/usr/bin/lua
|
||||
| `test_data.lua` | `BIS_DATA` registry: 9 classes × 3 specs, well-formed slot entries (valid slots, positive item IDs, non-empty names/sources, optional enchant shape), canonical phase order, `ResolvePhase` fallback, shared-list invariants, T4/T5/ZA spot checks |
|
||||
| `test_stats.lua` | `ScanItemStats`: MAX aggregation across alias keys (spell damage schools, healing, haste/crit/mp5 ratings), single-mapping pass-through, unmapped key filtering, nil handling |
|
||||
| `test_compare.lua` | `CompareGear`: BIS counting, upgrade ranking by stat gain, positive-diffs-only scoring, spec-specific stat keys (Shadow counts spell damage, Holy counts healing), phase resolution, `GetStatKeysForSpec`, `GetCompletionRatio` |
|
||||
| `test_slash.lua` | `/amibis spec <name>` parsing: override set/clear, case and multi-word normalization, `spec clear` not treated as a spec name |
|
||||
|
||||
## Layout
|
||||
|
||||
|
||||
Reference in new issue
Block a user