something happened again, PQR 2.2.0 uses 50% of the CPU and three times more memory than usually
PQR 2.1.0 works normally, but with this version i can't use PQR_UnitDistance(), with what function it is possible to replace it?
Code:
-- Ionization
function RangeCheck()
group = "raid"
for i = 1, GetNumGroupMembers() do
if PQR_UnitDistance("player", group..i) <= 4 then return true else return false end
end
end
if UnitDebuffID("player", 138733) ~= nil and UnitDebuffID("player", 138002) == nil and RangeCheck() == false and not isMoving then
if PQR_SpellAvailable(122783) then CastSpellByName(GetSpellInfo(122783)) end
end