WeakAuras / LibRangeCheck-3.0

A library to determine estimated range in World of Warcraft
https://www.curseforge.com/wow/addons/librangecheck-3-0
MIT License
6 stars 12 forks source link

Re-enable hostile range checking in combat. #10

Closed Hekili closed 9 months ago

Hekili commented 9 months ago

Here is a draft that re-enables hostile enemy range-checking in combat. It updates the InCombatLockdown to include a unit check and has a hackish canAttack flag that can be used to avoid redundant UnitCanAttack checks. There's probably a more clever way to accomplish the same thing and/or cache UnitCanAttack calls.

Results of :GetRange(unit) out of combat: image

Results of :GetRange(unit) in combat: image

In my (minimal) testing, no taint warnings have been generated.