Skip to content

Commit

Permalink
Fixes #65 - Added check for mounted or flight form
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Oct 28, 2018
1 parent e3b4f2c commit 069f0ea
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion BeStride_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function BeStride_Logic:IsDruidAndSpecial()
if self:IsDruid() then
if not self:DruidFlying() then
return false
elseif IsMounted() and IsFlying() and self:IsFlyable() and self:DruidFlying() and self:DruidFlyingMTFF() then
elseif (IsMounted() or self:IsDruidTraveling()) and IsFlying() and self:IsFlyable() and self:DruidFlying() and self:DruidFlyingMTFF() then
return true
elseif IsFlying() and self:NoDismountWhileFlying() then
return false
Expand Down Expand Up @@ -1122,6 +1122,15 @@ end
-- Druid --
-- ----- --

function BeStride_Logic:IsDruidTraveling()
if self:IsDruid() then
local index = GetShapeshiftForm()
if index == 3 then
return true
end
end
end

function BeStride_Logic:DruidFlying()
if self:IsDruid() then
if self:DruidCanFly() then
Expand Down

0 comments on commit 069f0ea

Please sign in to comment.