Default buffs should now copy properly into new profiles.
James Whitehead II [01-16-07 - 02:23]
Default buffs should now copy properly into new profiles.
diff --git a/Babelfish.lua b/Babelfish.lua
index 48d7099..01d19bb 100644
--- a/Babelfish.lua
+++ b/Babelfish.lua
@@ -53,3 +53,5 @@ for idx,match in ipairs(work) do
print(string.format("\t[\"%s\"] = \"%s\",", match, val))
end
print("}\n")
+--print("setmetatable(PerfectRaidLocals, {__index=function(t,k) if not rawget(t,k) then return k else return t[k] end end})")
+
diff --git a/Localization.enUS.lua b/Localization.enUS.lua
index a2a1438..948e60e 100644
--- a/Localization.enUS.lua
+++ b/Localization.enUS.lua
@@ -2,7 +2,6 @@
PerfectRaidLocals = {
["Add"] = "Add",
- ["Adding defaults to new profile \"%s\""] = "Adding defaults to new profile \"%s\"",
["Aggro"] = "Aggro",
["Align frames to BOTTOM"] = "Align frames to BOTTOM",
["Align frames to RIGHT"] = "Align frames to RIGHT",
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 8508d2d..1274f54 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -57,8 +57,8 @@ function Buffs:Enable()
end
function Buffs:DONGLE_PROFILE_CREATED(event, db, addon, svname, profileKey)
- if db ~= PerfectRaid.db then return end
- self:PrintF(L["Adding defaults to new profile \"%s\""], profileKey)
+ if svname ~= "PerfectRaidDB" then return end
+ self:PrintF("Adding default buffs to new profile \"%s\"", profileKey)
local buffs = db.profile.buffs
for k,v in ipairs(self.defaults) do
if not v.disabled then