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?