Mercurial > wow > askmrrobot
comparison Core.lua @ 143:55823e37403b v67
Updated pt-BR translation, bug fixes.
author | yellowfive |
---|---|
date | Thu, 08 Nov 2018 21:21:10 -0800 |
parents | c229c759a125 |
children | df1596b1a744 |
comparison
equal
deleted
inserted
replaced
142:f605ad8fc427 | 143:55823e37403b |
---|---|
159 -- upgrade some stuff from old to new formats | 159 -- upgrade some stuff from old to new formats |
160 local function upgradeFromOld() | 160 local function upgradeFromOld() |
161 | 161 |
162 local currentVersion = tonumber(GetAddOnMetadata(Amr.ADDON_NAME, "Version")) | 162 local currentVersion = tonumber(GetAddOnMetadata(Amr.ADDON_NAME, "Version")) |
163 if Amr.db.char.LastVersion < 65 then | 163 if Amr.db.char.LastVersion < 65 then |
164 for i = 1,GetNumSpecializations() do | 164 |
165 local _, specName = GetSpecializationInfo(i) | 165 if not Amr.db.profile.options.disableEm then |
166 if specName then | 166 for i = 1,GetNumSpecializations() do |
167 print("AMR " .. specName) | 167 local _, specName = GetSpecializationInfo(i) |
168 local setid = C_EquipmentSet.GetEquipmentSetID("AMR " .. specName) | 168 if specName then |
169 if setid then | 169 local setid = C_EquipmentSet.GetEquipmentSetID("AMR " .. specName) |
170 C_EquipmentSet.DeleteEquipmentSet(setid) | 170 if setid then |
171 C_EquipmentSet.DeleteEquipmentSet(setid) | |
172 end | |
171 end | 173 end |
172 end | 174 end |
173 end | 175 end |
176 | |
174 end | 177 end |
175 Amr.db.char.LastVersion = currentVersion | 178 Amr.db.char.LastVersion = currentVersion |
176 | 179 |
177 end | 180 end |
178 | 181 |