I'm having a hard time figuring this out, I'm trying to detect which ally has orianna's ball when she E's someone. What happens with the code below is when I E someone the if statement retrns true then name is printed, BUT when I Q somewhere else or E to myself the buff isn't removed until like 30 seconds. any idea on what i'm missing?
for i=1, selectedPlayer.buffCount do
buff = selectedPlayer:GetBuff(i)
if string.lower(buff.name) == "orianaredactshield" or string.lower(buff.name) == "orianaghost" then
print("Name " .. tostring(buff.name))
end
end
Sign In
Create Account

Back to top
Report








