#NearbyEnemies but it picks up explosive orbs

2 messages · Page 1 of 1 (latest)

frozen quarry
#

I have this code:

local NearbyEnemies = 0 for i = 1, 40 do local unit = "nameplate"..i if UnitExists(unit) and not UnitIsFriend("player", unit) and WeakAuras.CheckRange(unit, 5, "<=") then NearbyEnemies = NearbyEnemies + 1 end end

but it picks up explosive orbs making which baits some AoE buttons when the fight is single target. Anyone have an idea how to ignore explosive orbs?

loud vortex
#

and not select(6, strsplit("-", UnitGUID(unit))) == "xxxxxx"
Where xxxxxx is the npcID of the orbs