06-08-2014, 04:32 PM
Not sure if this is a new bug or not, I just purchased this yesterday :D
Sometimes after leaving a duty or teleporting Player.buffs will stop getting updated.
It isn't a huge problem, but my character will sit there and cast aetherflow over and over until I restart :P
Sometimes after leaving a duty or teleporting Player.buffs will stop getting updated.
It isn't a huge problem, but my character will sit there and cast aetherflow over and over until I restart :P
Code:
function mymodule.OnUpdateHandler( Event, ticks )
if ( mymodule.running and ticks - mymodule.lastticks > 500 ) then
mymodule.lastticks = ticks
local afbuff = false
if ( Player.buffs ) then
for i, buff in ipairs(Player.buffs) do
if (buff.id == 304) then
afbuff = true
end
end
end
if (not afbuff) then
local afspell = ActionList:Get(166)
if (afspell.isready) then
afspell:Cast()
d("Casting Aetherflow")
end
end
end
end