Skip to content

Commit

Permalink
Merge pull request #256 from Bestride/develop
Browse files Browse the repository at this point in the history
Fixes combat error
  • Loading branch information
DanSheps authored Aug 24, 2023
2 parents 4dd1816 + 9d1cb74 commit d1a0d54
Showing 1 changed file with 51 additions and 12 deletions.
63 changes: 51 additions & 12 deletions Versions/Common/mount.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,33 +235,72 @@ function BeStride:Combat()
action = ""
end
if self:IsDeathKnight() and BeStride:DBGet("settings.classes.deathknight.wraithwalk") and BeStride:CanWraithWalk() then
action = action .. BeStride_Mount:DeathKnightWraithWalk()
special = BeStride_Mount:DeathKnightWraithWalk()
if special ~= nil then
action = action .. special
end
elseif self:IsDemonHunter() and self:DemonHunterFelRush() then
action = action .. BeStride_Mount:DemonHunterFelRush()
special = BeStride_Mount:DemonHunterFelRush()
if special ~= nil then
action = action .. special
end
elseif self:IsDruid() and BeStride:DBGet("settings.classes.druid.traveltotravel") then
action = action .. BeStride_Mount:DruidTravelForm()
special = BeStride_Mount:DruidTravelForm()
if special ~= nil then
action = action .. special
end
elseif self:IsHunterAndSpecial() then
action = action .. self:Hunter()
if special ~= nil then
action = action .. special
end
elseif self:IsMage() and (BeStride:DBGet("settings.classes.mage.blink") or BeStride:DBGet("settings.classes.mage.slowfall")) then
if self:MageBlink() and BeStride:DBGet("settings.classes.mage.blinkpriority") then
action = action .. BeStride_Mount:MageBlink()
special = BeStride_Mount:MageBlink()
if special ~= nil then
action = action .. special
end
else
action = action .. BeStride_Mount:MageSlowFall()
special = BeStride_Mount:MageSlowFall()
if special ~= nil then
action = action .. special
end
end
elseif self:IsMonk() and BeStride:DBGet("settings.classes.monk.roll") then
action = action .. BeStride_Mount:MonkRoll()
special = BeStride_Mount:MonkRoll()
if special ~= nil then
action = action .. special
end
elseif self:IsPaladin() and BeStride:DBGet("settings.classes.paladin.steed") then
action = action .. BeStride_Mount:PaladinDivineSteed()
special = BeStride_Mount:PaladinDivineSteed()
if special ~= nil then
action = action .. special
end
elseif self:IsPriest() and BeStride:DBGet("settings.classes.priest.levitate") then
action = action .. BeStride_Mount:PriestLevitate()
special = BeStride_Mount:PriestLevitate()
if special ~= nil then
action = action .. special
end
elseif self:IsRogue() and BeStride:DBGet("settings.classes.rogue.sprint") then
action = action .. BeStride_Mount:RogueSprint()
special = BeStride_Mount:RogueSprint()
if special ~= nil then
action = action .. special
end
elseif self:IsShaman() and BeStride:DBGet("settings.classes.shaman.ghostwolf") then
action = action .. BeStride_Mount:ShamanGhostWolf()
special = BeStride_Mount:ShamanGhostWolf()
if special ~= nil then
action = action .. special
end
elseif self:IsEvoker() and BeStride:DBGet("settings.classes.evoker.hover") then
action = action .. BeStride_Mount:EvokerHover()
special = BeStride_Mount:EvokerHover()
if special ~= nil then
action = action .. special
end
elseif self:IsSpecialZone() then
action = action .. BeStride_Mount:SpecialZone()
special = BeStride_Mount:SpecialZone()
if special ~= nil then
action = action .. special
end
end

return action
Expand Down

0 comments on commit d1a0d54

Please sign in to comment.