Skip to content

Commit

Permalink
Fix lua error with non hunter users
Browse files Browse the repository at this point in the history
  • Loading branch information
Slivo-fr committed Sep 6, 2020
1 parent 3ae926e commit e2041ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rotation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ function TranqRotate:isPlayerNextTranq()

local player = TranqRotate:getHunter(nil, UnitGUID("player"))

-- Non hunter user
if (player == nil) then
return false
end

if (not player.nextTranq) then

local isRotationInitialized = false;
Expand Down

0 comments on commit e2041ec

Please sign in to comment.