Skip to content

Commit

Permalink
Merge pull request #225 from Bestride/develop
Browse files Browse the repository at this point in the history
Fixes #223 - Sea Turtle Swimming Mount
  • Loading branch information
DanSheps committed Nov 27, 2022
2 parents f313309 + 1bf7d2a commit 0115026
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
39 changes: 24 additions & 15 deletions Versions/Common/mount.table.lua
Expand Up @@ -24,23 +24,32 @@ end

function BeStride:AddCommonMount(mountId)
local mount = mountTable["master"][mountId]
if BeStride_MountDB and BeStride_MountDB[mount.spellID] and BeStride_MountDB[mount.spellID].attributes.flying and BeStride_MountDB[mount.spellID].attributes.ground then
table.insert(mountTable["flying"],mountId)
table.insert(mountTable["ground"],mountId)
elseif mount["type"] == "ground" then
--print("Adding Mount: " .. mount["name"] .. " Id: " .. mountId .. " Type: " .. mount["type"])
table.insert(mountTable["ground"],mountId)
elseif mount["type"] == "flying" then
--print("Adding Mount: " .. mount["name"] .. " Id: " .. mountId .. " Type: " .. mount["type"])
table.insert(mountTable["flying"],mountId)
elseif mount["type"] == "swimming" then
--print("Adding Mount: " .. mount["name"] .. " Id: " .. mountId .. " Type: " .. mount["type"])
table.insert(mountTable["swimming"],mountId)
elseif mount["type"] == "zone" then
if mountId == 373 then
if BeStride_MountDB and BeStride_MountDB[mount.spellID] then
if BeStride_MountDB[mount.spellID].attributes.flying then
table.insert(mountTable["flying"],mountId)
end
if BeStride_MountDB[mount.spellID].attributes.ground then
table.insert(mountTable["ground"],mountId)
end
if BeStride_MountDB[mount.spellID].attributes.swimming then
table.insert(mountTable["swimming"],mountId)
end
else
if mount["type"] == "ground" then
--print("Adding Mount: " .. mount["name"] .. " Id: " .. mountId .. " Type: " .. mount["type"])
table.insert(mountTable["ground"],mountId)
elseif mount["type"] == "flying" then
--print("Adding Mount: " .. mount["name"] .. " Id: " .. mountId .. " Type: " .. mount["type"])
table.insert(mountTable["flying"],mountId)
elseif mount["type"] == "swimming" then
--print("Adding Mount: " .. mount["name"] .. " Id: " .. mountId .. " Type: " .. mount["type"])
table.insert(mountTable["swimming"],mountId)
elseif mount["type"] == "zone" then
if mountId == 373 then
table.insert(mountTable["swimming"],mountId)
end
table.insert(mountTable["zone"],mountId)
end
table.insert(mountTable["zone"],mountId)
end
end

Expand Down
10 changes: 5 additions & 5 deletions Versions/Wrath/MountDB.lua
Expand Up @@ -1869,7 +1869,7 @@ BeStride_MountDB={
flying=false,
passenger=false,
vendor=false,
swimming=true
swimming=false
}
},
[26054]= {
Expand All @@ -1887,7 +1887,7 @@ BeStride_MountDB={
flying=false,
passenger=false,
vendor=false,
swimming=true
swimming=false
}
},
[26055]= {
Expand All @@ -1905,7 +1905,7 @@ BeStride_MountDB={
flying=false,
passenger=false,
vendor=false,
swimming=true
swimming=false
}
},
[26056]= {
Expand All @@ -1923,7 +1923,7 @@ BeStride_MountDB={
flying=false,
passenger=false,
vendor=false,
swimming=true
swimming=false
}
},
[26656]= {
Expand All @@ -1941,7 +1941,7 @@ BeStride_MountDB={
flying=true,
passenger=false,
vendor=false,
swimming=true
swimming=false
}
},
[28025]= {
Expand Down

0 comments on commit 0115026

Please sign in to comment.