Skip to content

Commit

Permalink
Prevent an error when a script hasn't been loaded for a specialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Aug 5, 2020
1 parent 73437db commit ff285c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ function Hekili:GetPredictionFromAPL( dispName, packName, listName, slot, action

state.delay = wait_time

if script.Error then
if not script then
if debug then self:Debug( "There is no script ( " .. scriptID .. " ). Skipping." ) end
elseif script.Error then
if debug then self:Debug( "The conditions for this entry contain an error. Skipping." ) end
elseif wait_time > state.delayMax then
if debug then self:Debug( "The action is not ready ( %.2f ) before our maximum delay window ( %.2f ) for this query.", wait_time, state.delayMax ) end
Expand Down

0 comments on commit ff285c3

Please sign in to comment.