now Im try to write a BM hunter profile.
I want to know the distance between pet and target, so I reference PQR_UnitDistance function code
The problem is when I try to GetAreaMapInfo(GetCurrentMapAreaID()) in Arena, I got following error msg:
Message: Interface\AddOns\MYBM\MYBM.lua:483: attempt to perform arithmetic on local 'd' (a nil value)
any idea to fix this ? plz help.
or any new way to check distance ?