Skip to content

Commit

Permalink
Fix for LOS not getting set right on pet pulls
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 24, 2024
1 parent 8dacbb3 commit 8a98bfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,11 @@ function Module:GiveTime(combat_state)

local pullAbility = self.TempSettings.ValidPullAbilities[self.settings.PullAbility]
local startingXTargs = RGMercUtils.GetXTHaterIDs()
local requireLOS = pullAbility and (pullAbility.LOS == nil and true or pullAbility.LOS) or true
local requireLOS = "on"

if pullAbility and pullAbility.LOS == false then
requireLOS = "off"
end

RGMercUtils.DoCmd("/nav id %d distance=%d lineofsight=%s log=off", self.TempSettings.PullID, self:GetPullAbilityRange(), requireLOS)

Expand Down

0 comments on commit 8a98bfc

Please sign in to comment.