mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
1012a67865
Drops the three other range-check paths and the target-juggling machinery they required: - Nampower IsSpellInRange branch + spellbook-scan to find the spell name - UnitXP_SP3 distance check (api.lua's UnitInRange wrapper still owns the UnitXP precise mode independently) - Vanilla IsActionInRange fallback that briefly retargeted via TargetUnit / TargetLastTarget With target-juggling gone, this also deletes the support scaffolding it required: PlaySound override, TargetFrame_OnEvent swap, ReAttack / lastattack restoration, the wand and combo-points detection frames (both were suspension guards for target-juggling), the loot/inspect/ trade/combat skip-checks, librange's pfScanActive set/clear (focus.lua still uses its own), and the librange_isLoggingOut crash workaround the target-flip path needed. Target case still uses IsActionInRange (vanilla-native, works for hostile targets too); friendly party/raid/pet scan uses UnitPosition. The friendly-only restriction on UnitPosition isn't an issue because the scan list contains only friendlies anyway. DPS classes (no 40y healing spell in `spells[class]`) now also get party/raid range coloring; they only miss the target case, which is unchanged from before. 328 → 166 lines.