Quantcast

I'll kill localizators for breaking my DK's stuff

Darthpred [10-31-12 - 13:54]
I'll kill localizators for breaking my DK's stuff
Filename
ElvUI_SLE/libs/oUF_NecroStrike/oUF_NecroStrike.lua
diff --git a/ElvUI_SLE/libs/oUF_NecroStrike/oUF_NecroStrike.lua b/ElvUI_SLE/libs/oUF_NecroStrike/oUF_NecroStrike.lua
index 7201f8e..9374bcf 100644
--- a/ElvUI_SLE/libs/oUF_NecroStrike/oUF_NecroStrike.lua
+++ b/ElvUI_SLE/libs/oUF_NecroStrike/oUF_NecroStrike.lua
@@ -22,7 +22,11 @@ local function GetNecroticAbsorb(unit)
 			NecroticStrikeTooltip:ClearLines()
 			NecroticStrikeTooltip:SetUnitDebuff(unit, i)
 			--NecroticStrikeTooltip:SetUnitBuff(unit, i)  --Debug for testing with holy pally mastery
-			return tonumber(string.match(_G[NecroticStrikeTooltip:GetName() .. "TextLeft2"]:GetText(), "(%d+%s?) .*"))
+			if (GetLocale() == "ruRU") then
+				return tonumber(string.match(_G[NecroticStrikeTooltip:GetName() .. "TextLeft2"]:GetText(), "(%d+%s?) .*"))
+			else
+				return tonumber(string.match(_G[NecroticStrikeTooltip:GetName() .. "TextLeft2"]:GetText(), ".* (%d+%s?) .*"))
+			end
 		end
 		i = i + 1
 	end