/
Version 2.7.9 |
- Another fix for flying mount detection |
Version 2.7.8 |
- Fixed flying in Zandalar and Nazjatar |
## Title: Livestock |
## Notes: Enables easy random summoning of vanity pets and mounts, including the option of "smart mounting" |
## Author: Kharthus - Deathwing(US) |
## Version: 2.7.8 |
## Version: 2.7.9 |
## SavedVariablesPerCharacter: LivestockSettings |
LibRecompense\RecompenseTools.lua |
L.LIVESTOCK_ZONE_WINTERGRASP = "Wintergrasp" |
L.LIVESTOCK_SPELL_APPRENTICERIDING = GetSpellInfo(33388) -- "Apprentice Riding" |
L.LIVESTOCK_SPELL_EXPERTRIDING = GetSpellInfo(34090) -- "Expert Riding" |
L.LIVESTOCK_SPELL_ARTISANRIDING = GetSpellInfo(34091) -- "Artisan Riding" |
L.LIVESTOCK_SPELL_MASTERRIDING = GetSpellInfo(90265) -- "Master Riding" |
L.LIVESTOCK_SPELL_COLDWEATHER = GetSpellInfo(54197) -- "Cold Weather Flying" |
L.LIVESTOCK_SPELL_FLIGHTMASTER = GetSpellInfo(90267) -- "Flight Master's License" |
L.LIVESTOCK_SPELL_WISDOMWINDS = GetSpellInfo(115913) -- "Wisdom of the Four Winds" |
L.LIVESTOCK_SPELL_DRAENORPATHFINDER = GetSpellInfo(191645) -- "Draenor Pathfinder" |
L.LIVESTOCK_SPELL_BROKENISLESPATHFINDER = GetSpellInfo(233368) -- "Broken Isles Pathfinder, Rank 2" |
L.LIVESTOCK_SPELL_BFAPATHFINDER = GetSpellInfo(278833) -- "Battle for Azeroth Pathfinder, Rank 2" |
L.LIVESTOCK_SPELL_EXPERTRIDING = 34090 -- "Expert Riding" |
L.LIVESTOCK_SPELL_ARTISANRIDING = 34091 -- "Artisan Riding" |
L.LIVESTOCK_SPELL_MASTERRIDING = 90265 -- "Master Riding" |
L.LIVESTOCK_SPELL_DRAENORPATHFINDER = 191645 -- "Draenor Pathfinder" |
L.LIVESTOCK_SPELL_BROKENISLESPATHFINDER = 233368 -- "Broken Isles Pathfinder, Rank 2" |
L.LIVESTOCK_SPELL_BFAPATHFINDER = 278833 -- "Battle for Azeroth Pathfinder, Rank 2" |
L.LIVESTOCK_SPELL_TRAVELFORM = GetSpellInfo(783) -- "Travel Form" |
L.LIVESTOCK_SPELL_FLIGHTFORM = GetSpellInfo(165962) -- "Flight Form" |
L.LIVESTOCK_SPELL_BEARFORM = GetSpellInfo(5487) -- "Bear Form" |
end |
function Livestock.LandOrFlying() -- since [flyable] has been fixed, check for flying and CWF and fly unless you're in WG and there's a battle going on. |
function Livestock.LandOrFlying() -- since [flyable] has been fixed, check for flying and fly unless you're in WG and there's a battle going on. |
local mapID = C_Map.GetBestMapForUnit("player") |
local zoneInfo = MapUtil.GetMapParentInfo(mapID, Enum.UIMapType.Zone, true) |
end |
end |
local expertRiding = IsUsableSpell(L.LIVESTOCK_SPELL_EXPERTRIDING) -- Expert Riding |
local artisanRiding = IsUsableSpell(L.LIVESTOCK_SPELL_ARTISANRIDING) -- Artisan Riding |
local masterRiding = IsUsableSpell(L.LIVESTOCK_SPELL_MASTERRIDING) -- Master Riding |
local expertRiding = IsSpellKnown(L.LIVESTOCK_SPELL_EXPERTRIDING) -- Expert Riding |
local artisanRiding = IsSpellKnown(L.LIVESTOCK_SPELL_ARTISANRIDING) -- Artisan Riding |
local masterRiding = IsSpellKnown(L.LIVESTOCK_SPELL_MASTERRIDING) -- Master Riding |
local draenorFlying = IsUsableSpell(L.LIVESTOCK_SPELL_DRAENORPATHFINDER) -- Draenor Pathfinder |
local brokenIslesFlying = IsUsableSpell(L.LIVESTOCK_SPELL_BROKENISLESPATHFINDER) -- Broken Isles Pathfinder |
local bfaFlying = IsUsableSpell(L.LIVESTOCK_SPELL_BFAPATHFINDER) -- Battle for Azeroth Pathfinder |
local draenorFlying = IsSpellKnown(L.LIVESTOCK_SPELL_DRAENORPATHFINDER) -- Draenor Pathfinder |
local brokenIslesFlying = IsSpellKnown(L.LIVESTOCK_SPELL_BROKENISLESPATHFINDER) -- Broken Isles Pathfinder, Rank 2 |
local bfaFlying = IsSpellKnown(L.LIVESTOCK_SPELL_BFAPATHFINDER) -- Battle for Azeroth Pathfinder, Rank 2 |
--[[ Updated Continent IDs |