Skip to content

Commit

Permalink
Fixes #24 - Added Felrush
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Oct 22, 2018
1 parent 2e4d0b8 commit 3345dc7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BeStride_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ function BeStride_Logic:IsDeathKnightAndSpecial()
end

function BeStride_Logic:IsDemonHunterAndSpecial()
if IsFlying() or IsFalling() then
if ( IsFlying() or IsFalling() ) and self:DemonHunterGlide() then
if IsFlying() and self:NoDismountWhileFlying() then
return true
elseif IsFalling() then
elseif IsFalling() and self:DemonHunterGlide() then
return true
else
return false
end
elseif self:MovementCheck() then
elseif self:MovementCheck() and self:DemonHunterFelRush() then
return true
else
return false
Expand Down Expand Up @@ -322,16 +322,16 @@ function BeStride_Logic:DeathKnight()
end

function BeStride_Logic:DemonHunter()
if IsFlying() or IsFalling() then
if ( IsFlying() or IsFalling() ) and self:DemonHunterGlide() then
if IsFlying() and self:NoDismountWhileFlying() then
Dismount()
return BeStride_Mount:DemonHunterGlide()
elseif IsFalling() then
elseif IsFalling() and self:DemonHunterGlide() then
return BeStride_Mount:DemonHunterGlide()
else
return false
end
elseif self:MovementCheck() then
elseif self:MovementCheck() and self:DemonHunterFelRush() then
return BeStride_Mount:DemonHunterFelRush()
else
BeStride_Debug:Error("This is a error. Please report to the maintainer at https://www.github.com/dansheps/bestride/issues/. ID: DRBSL")
Expand Down

0 comments on commit 3345dc7

Please sign in to comment.