How is this possible?

cleeezzz

The Undead Ranger.
Reaction score
268
is it because i have "shadow units" in my group?, i guess i cant null the filterunit in my filterfunc?

JASS:
private function GlobalFilter takes nothing returns boolean
    local unit fu = GetFilterUnit()
    if IsUnitInGroup(fu,a.g) == false and UnitAlive(fu) then
        call GroupAddUnit(a.g,fu)
        if IsUnitType(fu,UNIT_TYPE_STRUCTURE) then
            call a.UI.evaluate(a.p,fu)
        elseif IsUnitInRange(fu,TP,b.radius) and (IsUnitVisible(fu, GetOwningPlayer(TP)) or GetUnitAbilityLevel(GetFilterUnit(),'BOwk') == 0 or GetUnitTypeId(fu) == 'oeye') then
            call a.UI.evaluate(a.p,fu)  
        endif
    endif
    set fu = null
    return true
endfunction


EDIT: i removed "set fu = null" and still didn't work so its not that
 

Sickle

New Member
Reaction score
13
A problem is that whenever you reference a group named 'g' in a struct with a member named 'g', Jasshelper looks for the member 'g' first. You should not have struct members and globals with the same names.

I do not know if this is the cause of your problem, however.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top