comparison PVPScan.lua @ 10:2218520e3e64

- small fixes.
author Tercio
date Mon, 06 Jun 2016 20:24:26 -0300
parents f2a55f2d45c8
children 0d1a4acbe607
comparison
equal deleted inserted replaced
9:f2a55f2d45c8 10:2218520e3e64
446 end 446 end
447 447
448 function PVPScan:CheckNonCombatSpotBars() 448 function PVPScan:CheckNonCombatSpotBars()
449 for i = 1, PVPScan.db.profile.SpotBarAmount do 449 for i = 1, PVPScan.db.profile.SpotBarAmount do
450 local SpotObject = PVPScan.SpotBars [i] 450 local SpotObject = PVPScan.SpotBars [i]
451 if (SpotObject.InUse and (SpotObject.NonTargetFrame:IsShown() or SpotObject.NeedUpdate)) then 451 if (SpotObject and SpotObject.InUse and (SpotObject.NonTargetFrame:IsShown() or SpotObject.NeedUpdate)) then
452 PVPScan:UpdateBar (SpotObject, SpotObject.PlayerName, SpotObject.PlayerClass) 452 PVPScan:UpdateBar (SpotObject, SpotObject.PlayerName, SpotObject.PlayerClass)
453 end 453 end
454 end 454 end
455 end 455 end
456 456
664 end 664 end
665 665
666 --> misc 666 --> misc
667 667
668 function PVPScan:GuessClass (...) 668 function PVPScan:GuessClass (...)
669 local arg1, arg2, arg3, arg4 = select (1, ...) 669 local arg1 = select (1, ...)
670 670
671 if (type (arg1) == "number") then 671 if (type (arg1) == "number") then
672 local spellname = GetSpellInfo (arg1) 672 local spellname = GetSpellInfo (arg1)
673 local class = PVPScan.ClassSpellList [arg1] 673 local class = PVPScan.ClassSpellList [arg1]
674 --print ("found enemy:", arg1, class, spellname) 674 --print ("found enemy:", arg1, class, spellname)