Skip to content

Commit

Permalink
fix tp if no profession
Browse files Browse the repository at this point in the history
  • Loading branch information
mBlinkii committed Nov 18, 2022
1 parent d54486c commit 64dc450
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions misc/mTeleports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,13 @@ end

local function EngineeringCheck()
local prof1, prof2 = GetProfessions()
prof1 = select(7, GetProfessionInfo(prof1))
prof2 = select(7, GetProfessionInfo(prof2))
if prof1 then
prof1 = select(7, GetProfessionInfo(prof1))
end

if prof2 then
prof2 = select(7, GetProfessionInfo(prof2))
end

return prof1 == 202 or prof2 == 202
end
Expand Down

0 comments on commit 64dc450

Please sign in to comment.