mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Return 1 or nil instead of a slot count. 0 is truthy, so callers that test the result (our GameTooltip_ShowCompareItem, retail FrameXML) showed empty or stale shopping tooltips. Show stat deltas only when comparisonTooltip is passed, and take the compared item from that tooltip's live CGItem first. shiftButton no longer gates deltas (in 4.3.4 it only affects the merchant offset-3 case). Pick the equipped item with 4.3.4 SetCompareItem's rules: multi-slot types count filled slots, weapons follow the main/off-hand rules, and an off-hand item falls back to an equipped two-hander. Slot masks are read from the engine's own table (0x809200) instead of a hand-written switch. Require itemLink, add the blank spacer before the delta header, and wrap the header line.