Skip to content

line 413: [...]hero ~= nill[...] ? #2

@ThumpsUpSchmitty

Description

@ThumpsUpSchmitty

hello,
do you mean? [...]hero ~= nil[...]

function UpdateAllyHealth()
local deltaTick = Game.Timer() - _allyHealthUpdateRate
if deltaTick >= 1 then
_allyHealthPercentage = {}
_allyHealthUpdateRate = Game.Timer()
for i = 1, LocalGameHeroCount() do
local hero = LocalGameHero(i)
if hero ~= nill and hero.isAlly and hero.alive then
_allyHealthPercentage[hero.networkID] = CurrentPctLife(hero)
end
end
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions