Skip to content

Commit

Permalink
- Pet pull no longer requires los
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 19, 2024
1 parent c5f84ba commit 65c22ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Module.Constants.PullAbilities = {
Type = "Special",
AbilityRange = 100,
DisplayName = "Pet Pull",
LOS = false,
cond = function(self)
return RGMercConfig.Constants.RGPetClass:contains(RGMercConfig.Globals.CurLoadedClass)
end,
Expand Down Expand Up @@ -1198,8 +1199,9 @@ function Module:GiveTime(combat_state)

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

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

mq.delay(1000)

Expand Down

0 comments on commit 65c22ec

Please sign in to comment.