Mercurial > wow > mylilpony
diff libMyLilPony/libMyLilPony_mountData.lua @ 60:81145a681a59
Fixed for legion xpack (patch 7.0) API changes
author | syzler |
---|---|
date | Sat, 13 Aug 2016 15:29:39 -0400 |
parents | 64e8f8e5fa41 |
children |
line wrap: on
line diff
--- a/libMyLilPony/libMyLilPony_mountData.lua Wed Jun 24 21:00:39 2015 -0400 +++ b/libMyLilPony/libMyLilPony_mountData.lua Sat Aug 13 15:29:39 2016 -0400 @@ -163,7 +163,7 @@ -- @param slotID The slot ID of the mount to be checked. -- @return A Boolean value indicating whether or not the specified mount is a ground mount. function MyLilPony.IsGroundMountSlot(slotID) - local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); + local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); return mountType == 230 or mountType == 284; end @@ -171,7 +171,7 @@ -- @param slotID The slot ID of the mount to be checked. -- @return A Boolean value indicating whether or not the specified mount is a flying mount. function MyLilPony.IsFlyingMountSlot(slotID) - local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); + local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); return mountType ==247 or mountType == 248; end @@ -179,7 +179,7 @@ -- @param slotID The slot ID of the mount to be checked. -- @return A Boolean value indicating whether or not the specified mount is an aquatic mount. function MyLilPony.IsAquaticMountSlot(slotID) - local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); + local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); return mountType == 231 or mountType == 254; end @@ -187,7 +187,7 @@ -- @param slotID The slot ID of the mount to be checked. -- @return A Boolean value indicating whether or not the specified mount is a Temple of Ahn'Qiraj mount. function MyLilPony.IsAhnQirajMountSlot(slotID) - local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); + local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); return mountType == 241; end @@ -195,6 +195,6 @@ -- @param slotID The slot ID of the mount to be checked. -- @return A Boolean value indicating whether or not the specified mount is a Vashj'ir mount. function MyLilPony.IsVashjirMountSlot(slotID) - local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtra(slotID); + local _, _, _, _, mountType = C_MountJournal.GetMountInfoExtraByID(slotID); return mountType == 232 or mountType == 231 or mountType == 254; end