godtanker 0 Report post Posted July 17, 2017 vulnerability_direct_test = "^[%w]+[%s's]* ([%w%s:]+) ([%w]+) Chromaggus for ([%d]+) ([%w]+) damage%.[%s%(]*([%d]*)", -- [Fashu's] [Firebolt] [hits] Battleguard Sartura for [44] [Fire] damage. ([14] resisted) --> koKR Translation vulnerability_dots_test = "^Chromaggus suffers ([%d]+) ([%w]+) damage from [%w]+[%s's]* ([%w%s:]+)%.[%s%(]*([%d]*)", -> koKR Translation -> koKR Translation if stype and dmg and school then -- korea combat log entries for a crit are a bit special (<name> hits <enemy> critically for <x> damage.) if GetLocale() == "koKR" then if string.find(msg, L["crit"]) then stype = L["crit"] else stype = L["hit"] end school = string.gsub(school, "dmg", "") -- turn "Feuerschaden" into "Feuer" end if school == L["arcane"] then if string.find(userspell, L["starfire"]) then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 800 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 800 and stype == L["hit"]) or (tonumber(dmg) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end else if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 600 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 600 and stype == L["hit"]) or (tonumber(dmg) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end end elseif school == L["fire"] then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 1300 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 2600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 1300 and stype == L["hit"]) or (tonumber(dmg) >= 2600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end elseif school == L["frost"] then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 800 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 800 and stype == L["hit"]) or (tonumber(dmg) >= 1600 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end elseif school == L["nature"] then if string.find(userspell, L["thunderfury"]) then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 800 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 800 and stype == L["hit"]) or (tonumber(dmg) >= 1200 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end else if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 900 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 1800 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 900 and stype == L["hit"]) or (tonumber(dmg)>= 1800 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end end elseif school == L["shadow"] then if partial and partial ~= "" then if (tonumber(dmg)+tonumber(partial) >= 1700 and stype == L["hit"]) or (tonumber(dmg)+tonumber(partial) >= 3400 and stype == L["crit"]) then self:IdentifyVulnerability(school) end else if (tonumber(dmg) >= 1700 and stype == L["hit"]) or (tonumber(dmg) >= 3400 and stype == L["crit"]) then self:IdentifyVulnerability(school) end end end end end end 0 Share this post Link to post Share on other sites