/trunk
elseif state == 2 then -- if mounted, clear out any mounted attributes and return, which will lead to a dismount (in the Click handler) and nothing in the PostClick. Druids go to flight form or travel form if they have it. |
self.mounttype = Livestock.LandOrFlying() |
if LivestockClass == "DRUID" and not InCombatLockdown() then |
if Livestock.LandOrFlying() == "FLYING" and LivestockSettings.druidlogic == 1 or Livestock.LandOrFlying() == "LAND" and LivestockSettings.travelform == 1 then |
if (Livestock.LandOrFlying() == "FLYING" and LivestockSettings.druidlogic == 1) or (Livestock.LandOrFlying() == "LAND" and LivestockSettings.travelform == 1) then |
if GetSpellInfo(L.LIVESTOCK_SPELL_TRAVELFORM) then |
self:SetAttribute("type", "spell") |
self:SetAttribute("spell", L.LIVESTOCK_SPELL_TRAVELFORM) |
self.mounttype = Livestock.LandOrFlying() |
if LivestockSettings.movingform == 1 and GetUnitSpeed("player") ~= 0 or LivestockSettings.travelform == 1 then |
if (LivestockSettings.movingform == 1 and GetUnitSpeed("player") ~= 0) or (LivestockSettings.travelform == 1 and self.mounttype == "LAND" and LivestockClass == "DRUID") then |
if AuraUtil.FindAuraByName(L.LIVESTOCK_SPELL_TRAVELFORM, "player") and LivestockSettings.moonkin == 1 and GetSpellInfo(L.LIVESTOCK_SPELL_MOONKINFORM) then |
self:SetAttribute("type", "spell") |
self:SetAttribute("spell", L.LIVESTOCK_SPELL_MOONKINFORM) |
Version 3.3.2 |
- Minor Druid logic updates. |
Version 3.3.1 |
- Enabled dragonriding in The Nokhud Offensive. |
## Title: Livestock |
## Notes: Enables easy random summoning of vanity pets and mounts, including the option of "smart mounting" |
## Author: Kharthus - Deathwing(US) |
## Version: 3.3.1 |
## Version: 3.3.2 |
## SavedVariablesPerCharacter: LivestockSettings |
LibRecompense\RecompenseTools.lua |