diff libMyLilPony/libMyLilPony_miscFunctions.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_miscFunctions.lua	Wed Jun 24 21:00:39 2015 -0400
+++ b/libMyLilPony/libMyLilPony_miscFunctions.lua	Sat Aug 13 15:29:39 2016 -0400
@@ -79,7 +79,7 @@
 -- @returns True if a mount was summoned, or False otherwise.
 function MyLilPony.CallMount(slotID, condition)
     if condition == nil or condition then
-        C_MountJournal.Summon(slotID);
+        C_MountJournal.SummonByID(slotID);
         return true;
     end
     return false;
@@ -100,7 +100,7 @@
     local x = 1;
     return function()
         for i = x, countMounts do
-            local _, _, _, _, _, _, _, _, _, hidden, known = C_MountJournal.GetMountInfo(i);
+            local _, _, _, _, _, _, _, _, _, hidden, known = C_MountJournal.GetMountInfoByID(i);
             if known and not hidden then
                 x = i + 1;
                 return i;