comparison PVPScan.lua @ 13:0d1a4acbe607

- toc update.
author Tercio
date Tue, 25 Oct 2016 16:25:50 -0200
parents 2218520e3e64
children 89fbbfa1b347
comparison
equal deleted inserted replaced
12:874f6f84d243 13:0d1a4acbe607
353 353
354 function PVPScan:GetNextSpotBar() 354 function PVPScan:GetNextSpotBar()
355 for i = 1, PVPScan.db.profile.SpotBarAmount do 355 for i = 1, PVPScan.db.profile.SpotBarAmount do
356 local bar = PVPScan.SpotBars [i] 356 local bar = PVPScan.SpotBars [i]
357 if (not bar) then 357 if (not bar) then
358 print (i, #PVPScan.SpotBars) 358 print ("PvPScan no bar for", i, #PVPScan.SpotBars)
359 return
359 end 360 end
360 if (not bar.InUse and bar.Cooldown < GetTime()) then 361 if (not bar.InUse and bar.Cooldown < GetTime()) then
361 return bar 362 return bar
362 end 363 end
363 end 364 end