Skip to content

Commit

Permalink
Fix error on classes that don't have a misdirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppzippy committed Apr 12, 2024
1 parent 71efea7 commit cda4d56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TankMD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ end
---@return string[]
function TankMD:GetTargets()
local _, class = UnitClass("player")
local selector = addon.ClassTargetSelectors[class]() or addon.TargetSelector.Chain({})
local createSelector = addon.ClassTargetSelectors[class]
local selector = createSelector and createSelector() or addon.TargetSelector.Chain({})
return addon.TargetSelector.Evaluate(selector)
end

0 comments on commit cda4d56

Please sign in to comment.