From 02c8a4d51caaa0dafbea0b937da8ce5a8ea201bf Mon Sep 17 00:00:00 2001 From: Anaximander Date: Sat, 26 Nov 2022 22:17:16 -0600 Subject: [PATCH 1/2] Fixes: #223 - Adjust logic to add mounts to table --- Versions/Common/mount.table.lua | 39 ++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/Versions/Common/mount.table.lua b/Versions/Common/mount.table.lua index eddd9bf..852c1fd 100644 --- a/Versions/Common/mount.table.lua +++ b/Versions/Common/mount.table.lua @@ -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 From 1bf7d2a4260525e0999037678f637af0e8729dda Mon Sep 17 00:00:00 2001 From: Anaximander Date: Sat, 26 Nov 2022 22:21:57 -0600 Subject: [PATCH 2/2] Fix TAQ mounts showing as swimming --- Versions/Wrath/MountDB.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Versions/Wrath/MountDB.lua b/Versions/Wrath/MountDB.lua index 1af1aa1..ad4294e 100644 --- a/Versions/Wrath/MountDB.lua +++ b/Versions/Wrath/MountDB.lua @@ -1869,7 +1869,7 @@ BeStride_MountDB={ flying=false, passenger=false, vendor=false, - swimming=true + swimming=false } }, [26054]= { @@ -1887,7 +1887,7 @@ BeStride_MountDB={ flying=false, passenger=false, vendor=false, - swimming=true + swimming=false } }, [26055]= { @@ -1905,7 +1905,7 @@ BeStride_MountDB={ flying=false, passenger=false, vendor=false, - swimming=true + swimming=false } }, [26056]= { @@ -1923,7 +1923,7 @@ BeStride_MountDB={ flying=false, passenger=false, vendor=false, - swimming=true + swimming=false } }, [26656]= { @@ -1941,7 +1941,7 @@ BeStride_MountDB={ flying=true, passenger=false, vendor=false, - swimming=true + swimming=false } }, [28025]= {