Ovale Spell Priority

Ovale Spell Priority

6M Downloads

Error in Power.lua

Saij opened this issue ยท 3 comments

commented

Class: Druid
Specc: Feral
Script: newest ShmooDude Script ^.^

Always seen this error with 5 CP ^.^

Message: Interface\AddOns\Ovale\Power.lua:722: attempt to compare number with nil
Time: 09/04/16 22:49:58
Count: 1531
Stack: [C]: ?
Interface\AddOns\Ovale\Power.lua:722: in function TimeToPower' Interface\AddOns\Ovale\SpellBook.lua:514: in functionGetTimeToSpell'
Interface\AddOns\Ovale\BestAction.lua:269: in function <Interface\AddOns\Ovale\BestAction.lua:209>
(tail call): ?
Interface\AddOns\Ovale\BestAction.lua:520: in function ?' Interface\AddOns\Ovale\BestAction.lua:480: in functionRecursiveCompute'
Interface\AddOns\Ovale\BestAction.lua:459: in function PostOrderCompute' Interface\AddOns\Ovale\BestAction.lua:420: in functionCompute'
Interface\AddOns\Ovale\BestAction.lua:812: in function ?' Interface\AddOns\Ovale\BestAction.lua:480: in functionRecursiveCompute'
Interface\AddOns\Ovale\BestAction.lua:459: in function PostOrderCompute' Interface\AddOns\Ovale\BestAction.lua:420: in functionCompute'
Interface\AddOns\Ovale\BestAction.lua:396: in function GetAction' Interface\AddOns\Ovale\Frame.lua:212: in functionOnUpdate'
Interface\AddOns\Ovale\Frame.lua:89: in function <Interface\AddOns\Ovale\Frame.lua:88>

Locals:

commented

Quick Fix seems to be to add a check against nil.

if powerRate == nil then powerRate = 0 end

commented

Smells like a possible duplicate of #78

commented

Little correction. 1 seems to be a better fallback value than 0 ^.^