#Specific mob in range

3 messages · Page 1 of 1 (latest)

hollow cove
hollow cove
#

Sorry I didn't answer before. So in the trigger, you have this part:

if aura_env.config.type == 2 then
      for i = 1, 40 do
        local unit = "nameplate"..i
        if UnitCanAttack("player", unit) 
        and (not aura_env.config.combat or UnitAffectingCombat(unit))
        and WeakAuras.CheckRange(unit, aura_env.config.range, "<=")  
        then
          count = count + 1
        end
      end 

change it to this

if aura_env.config.type == 2 then
      for i = 1, 40 do
        local unit = "nameplate"..i
        local name = UnitName(unit)
        if UnitCanAttack("player", unit) 
        and (not aura_env.config.combat or UnitAffectingCombat(unit))
        and WeakAuras.CheckRange(unit, aura_env.config.range, "<=")
        and name == "Corrupted Blood"  
        then
          count = count + 1
        end
      end 
cursive sluice