Mercurial > wow > skeletonkey
comparison ActionTemplates.lua @ 81:9a206b105ea5 v7.2.0
- Fixed profession spells not being detected on load-in
- Fixed Demon Hunter Vengeance bindings, along with other spells that are replaced by specialization variants.
- Spells replaced by a specialization now display the replacing name along with the original name in their binding slot.
| author | Nenue |
|---|---|
| date | Mon, 17 Apr 2017 13:27:34 -0400 |
| parents | b9a53385462c |
| children | 1605319122ce d6831be74cf4 |
comparison
equal
deleted
inserted
replaced
| 80:b9a53385462c | 81:9a206b105ea5 |
|---|---|
| 35 [5] = 3, | 35 [5] = 3, |
| 36 [7] = 4, | 36 [7] = 4, |
| 37 [9] = 5, | 37 [9] = 5, |
| 38 [10] = 6 | 38 [10] = 6 |
| 39 } | 39 } |
| 40 | |
| 41 | |
| 40 local petSpellCache,petSubtextCache | 42 local petSpellCache,petSubtextCache |
| 41 local SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544 | 43 local SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544 |
| 42 | 44 |
| 43 | 45 |
| 44 local atype = kb.ActionTypes | 46 local atype = kb.ActionTypes |
| 166 end | 168 end |
| 167 if not info then | 169 if not info then |
| 168 info = SkeletonKey_GetGenericSpell(spellName, spellID, internalIcon or icon) | 170 info = SkeletonKey_GetGenericSpell(spellName, spellID, internalIcon or icon) |
| 169 end | 171 end |
| 170 end | 172 end |
| 173 | |
| 174 | |
| 175 | |
| 171 info.isAvailable = isAvailable | 176 info.isAvailable = isAvailable |
| 172 | 177 |
| 173 print('|cFF00FF88Slot Details:|r', info.actionName, info.actionID, info.dynamicType, info.isAvailable) | 178 print('|cFF00FF88Slot Details:|r', info.actionName, info.actionID, info.dynamicType, info.isAvailable) |
| 174 for k,v in pairs(info) do | 179 for k,v in pairs(info) do |
| 175 --cprint(' ',k,v) | 180 --cprint(' ',k,v) |
| 199 local button = SkeletonKeyKey | 204 local button = SkeletonKeyKey |
| 200 local isAvailable | 205 local isAvailable |
| 201 local specialButtonType | 206 local specialButtonType |
| 202 if actionType == 'spell' then | 207 if actionType == 'spell' then |
| 203 local realName, _, _, _, _, _, realID = GetSpellInfo(name) | 208 local realName, _, _, _, _, _, realID = GetSpellInfo(name) |
| 204 if realName and (realName ~= name) then | 209 if realName then |
| 205 print(' *** "', name, '" resolves to something else...', realName, realID) | 210 if (realName ~= name) then |
| 211 print(' *** "', name, '" is replaced by...', realName, realID) | |
| 206 --name, actionID = realName, realID | 212 --name, actionID = realName, realID |
| 207 indexKey = actionType .. '_'.. realID | 213 indexKey = actionType .. '_'.. realID |
| 208 end | 214 end |
| 209 | 215 elseif configTable.dynamicType == 'talent' then |
| 210 | 216 print(' *** "', name, '" is a non-selected talent.') |
| 211 | 217 return |
| 212 local dynamicInfo = kb.DynamicSpells[spellName] | 218 end |
| 219 | |
| 220 | |
| 221 | |
| 222 local dynamicInfo = kb.DynamicSpells[name] | |
| 213 if dynamicInfo then | 223 if dynamicInfo then |
| 214 configTable.assignedKeys = configTable.assignedKeys or {GetBindingKey(configTable.command) } | 224 configTable.assignedKeys = configTable.assignedKeys or {GetBindingKey(configTable.command) } |
| 215 | 225 |
| 216 cprint('|cFF00FFFFDynamicInfo:|r', dynamicInfo.dynamicType, table.concat(configTable.assignedKeys, ',')) | 226 cprint('|cFF00FFFFDynamicInfo:|r', dynamicInfo.dynamicType, table.concat(configTable.assignedKeys, ',')) |
| 217 for k, v in pairs(dynamicInfo) do | 227 for k, v in pairs(dynamicInfo) do |
