for i=1, heroManager.iCount do currentAlly = heroManager:GetHero(i) if currentAlly.team == myHero.team and not currentAlly.dead then if lowestAlly == nil then lowestAlly = currentAlly elseif currentAlly.health < lowestAlly.health then lowestAlly = currentAlly end end end