diff --git a/Localization.lua b/Localization.lua index 73a9a5b..fb8eb49 100644 --- a/Localization.lua +++ b/Localization.lua @@ -126,6 +126,7 @@ L:RegisterTranslations("enUS", function() ["Gouge"] = true, -- warlock + ["Conflagrate"] = true, ["Corruption"] = true, ["Curse of Agony"] = true, ["Curse of Doom"] = true, @@ -267,6 +268,7 @@ L:RegisterTranslations("zhCN", function() ["Gouge"] = "凿击", -- warlock + ["Conflagrate"] = "引燃", -- no idea if right ["Corruption"] = "腐蚀术", ["Curse of Agony"] = "痛苦诅咒", ["Curse of Doom"] = "末日诅咒", diff --git a/curses.lua b/curses.lua index fba01e1..9b5fe92 100644 --- a/curses.lua +++ b/curses.lua @@ -146,9 +146,9 @@ Cursive:RegisterEvent("UNIT_CASTEVENT", function(casterGuid, targetGuid, event, Cursive:ScheduleEvent("addCurse" .. targetGuid .. curses.trackedCurseIds[spellID].name, curses.ApplyCurse, 0.2, self, spellID, targetGuid, GetTime()) elseif curses.conflagrateSpellIds[spellID] then -- check if target has immolate - if curses:HasCurse("Immolate", targetGuid) then + if curses:HasCurse(L["Immolate"], targetGuid) then -- reduce duration by 3 sec - curses.guids[targetGuid]["Immolate"].duration = curses.guids[targetGuid]["Immolate"].duration - 3 + curses.guids[targetGuid][L["Immolate"]].duration = curses.guids[targetGuid][L["Immolate"]].duration - 3 end end end @@ -165,10 +165,10 @@ Cursive:RegisterEvent("CHAT_MSG_SPELL_SELF_DAMAGE", if curses:ShouldPlayResistSound(lastGuid) then PlaySoundFile("Interface\\AddOns\\Cursive\\Sounds\\resist.mp3") end - elseif spell == "Conflagrate" and lastGuid then - if curses:HasCurse("Immolate", lastGuid) then + elseif spell == L["Conflagrate"] and lastGuid then + if curses:HasCurse(L["Immolate"], lastGuid) then -- increase duration by 3 sec to undo the deduction due to resist - curses.guids[lastGuid]["Immolate"].duration = curses.guids[lastGuid]["Immolate"].duration + 3 + curses.guids[lastGuid][L["Immolate"]].duration = curses.guids[lastGuid][L["Immolate"]].duration + 3 end end end