comparison RatPageController.lua @ 68:840c9f09a707 v6.0.3-1

Removed the old companion code, and convert saved ones (which should already be mounts, not critters) to the 'mount' type.
author Jerome Vuarand <jerome.vuarand@gmail.com>
date Thu, 23 Oct 2014 17:11:47 +0100
parents 8b8b0bade520
children
comparison
equal deleted inserted replaced
67:2d6684c270b9 68:840c9f09a707
86 return CyborgMMO_CreateWowObject('spell', id) 86 return CyborgMMO_CreateWowObject('spell', id)
87 elseif type=='macro' then 87 elseif type=='macro' then
88 local index = a 88 local index = a
89 local name = GetMacroInfo(index) 89 local name = GetMacroInfo(index)
90 return CyborgMMO_CreateWowObject('macro', name) 90 return CyborgMMO_CreateWowObject('macro', name)
91 elseif type=='companion' then
92 local index,subtype = a,b
93 local spellID = select(3, GetCompanionInfo(subtype, index))
94 return CyborgMMO_CreateWowObject('companion', spellID)
95 elseif type=='battlepet' then 91 elseif type=='battlepet' then
96 local petID = a 92 local petID = a
97 return CyborgMMO_CreateWowObject('battlepet', petID) 93 return CyborgMMO_CreateWowObject('battlepet', petID)
98 elseif type=='mount' then 94 elseif type=='mount' then
99 local mountID = a 95 local mountID = a