#Friendly Players In Range

17 messages · Page 1 of 1 (latest)

crystal pond
#

I'm trying to get friendly player count to show for a couple different spells and the code doesn't seem to be working at all. I'm not sure what I'm doing wrong and when I look at other code for similar things it seems to use an aura but I never can find where to edit it.

function()
    local numInRange = 0
    for i = 1, GetNumGroupMembers() do
        local unit = (IsInRaid() and "raid" or "party")..i
        if UnitExists(unit) and not UnitIsDeadOrGhost(unit) and UnitInRange(unit, "Emerald Blossom") then
            numInRange = numInRange + 1
        end
    end
    return numInRange
end
pallid lotus
#

Does that spell have a range?

crystal pond
#

30 yds

pallid lotus
#

Does it heal in that radius or does it have an actual range?

crystal pond
#

It heals within a 10 yd radius it can be cast on anyone up to 30 yds away. I care about the 10 yd radius once on that person

pallid lotus
#

That's impossible.

crystal pond
#

Select player, see friendly players within 10 yards? That doesnt seem impossible

pallid lotus
#

It is

crystal pond
#

EF WA can tell me how many people are injured within myself, it seems like this should be possible?

#

Or at least withmyself

pallid lotus
#

Range of 10 to you works.

crystal pond
#

But not another player?

pallid lotus
#

Yes

crystal pond
#

Gotcha well I guess myself is better than nothing

pallid lotus
#

It's not, because it will burn ressources for nothing of value

#

!range