Skip to content

Commit

Permalink
v2.0.1 (#162)
Browse files Browse the repository at this point in the history
* Fixes: #160

* Fixes: #161
  • Loading branch information
DanSheps committed Oct 6, 2022
1 parent 4df8d27 commit 2c46362
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions Versions/Common/BeStride_Events.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
function BeStride:EventNewMount(arg1, arg2)
BeStride:AddNewMount(arg2)
BeStride:AddCommonMount(arg2)
local mount = mountTable.master[arg2]

if BeStride:DBGet("settings.mount.enablenew") then
BeStride:DBSetMount(mount.type,arg2,true)
if BeStride_Game == "Mainline" then
BeStride:AddNewMount(arg2)
BeStride:AddCommonMount(arg2)
local mount = mountTable.master[arg2]

if BeStride:DBGet("settings.mount.enablenew") then
BeStride:DBSetMount(mount.type,arg2,true)
else
BeStride:DBSetMount(mount.type,arg2,false)
end
else
BeStride:DBSetMount(mount.type,arg2,false)
BeStride:BuildMasterMountTable()
BeStride:LoadMountTables()
end
end

Expand Down
2 changes: 1 addition & 1 deletion Versions/Mainline/logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function BeStride:isMountUsable(mount)
return spellID,mountID,isUsable
end

function BeStride:IsZoneMount(mountId)
function BeStride:isZoneMount(mountId)
spellId = mountTable.master[mountId].spellID
if mountTable.master[mountId].type == "zone" and BeStride_Constants.Mount.Mounts[spellId] ~= nil and BeStride_Constants.Mount.Mounts[spellId].zone ~= nil then
return true
Expand Down

0 comments on commit 2c46362

Please sign in to comment.