/PartyHardy
local version = 0.9 |
local version = 0.10 |
if not PartyHardyDB then PartyHardyDB = {} end |
if not PartyHardyDB.whitelist then PartyHardyDB.whitelist = { [string.lower(UnitName("player"))] = true, } end |
PartyHardy:RegisterEvent("PLAYER_REGEN_ENABLED") |
else |
for i=1,GetNumCompanions("mount") do |
if select(2,GetCompanionInfo("mount",i)) == GetSpellInfo(PartyHardyDB.land) then |
if select(3,GetCompanionInfo("mount",i)) == tonumber(PartyHardyDB.land) then |
CallCompanion("mount",i) |
break |
end |
PartyHardy:RegisterEvent("PLAYER_REGEN_ENABLED") |
else |
for i=1,GetNumCompanions("mount") do |
if select(2,GetCompanionInfo("mount",i)) == GetSpellInfo(PartyHardyDB.fly) then |
if select(3,GetCompanionInfo("mount",i)) == tonumber(PartyHardyDB.fly) then |
CallCompanion("mount",i) |
break |
end |