WoWInterface SVN Livestock-Cataclysm

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 7 to Rev 8
    Reverse comparison

Rev 7 → Rev 8

trunk/Livestock/Livestock.lua
991,13 → 991,13
 
for i = 1, GetNumCompanions("MOUNT") do
local _, name, _, _, _, mountFlags = GetCompanionInfo("MOUNT",i)
local name2 = strconcat(name, "-")
if name and not LivestockSettings.Mounts[name] then -- if the name is valid and we don't have SV data for it, we need to make it
local name2 = strconcat(name, "-")
LivestockSettings.Mounts[name] = { index = i, } -- set the index of the mount
 
if mountFlags == 7 then -- flying mount
LivestockSettings.Mounts[name].type = "flying"
elseif mountFlags == 31 then -- variable
elseif mountFlags == 31 or mountFlags == 23 then -- variable
LivestockSettings.Mounts[name].type = "flying"
LivestockSettings.Mounts[name2] = { index = i, }
LivestockSettings.Mounts[name2].type = "land"
1009,6 → 1009,7
end
LivestockSettings.Mounts[name].show = 1
elseif name then -- if we do have SV data for it, update the index.
local name2 = strconcat(name, "-")
LivestockSettings.Mounts[name].index = i
if LivestockSettings.Mounts[name2] then
LivestockSettings.Mounts[name2].index = i