I use the above code to determine if my target is in melee range. It works 99% of the time as intended. However there are situations / occasions where it returns nil and it's quite stubborn too, eg a reloadUI does not help. When I say "situations" I mean straight up one or more mobs, happily melee-ing them, but it returns nil. I am not sure what's up with it. Any ideas?