From 572e060a14d25a03afe865f3cbbb17ebe14fd81c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 31 Oct 2012 17:54:35 +0400 Subject: [PATCH] I'll kill localizators for breaking my DK's stuff --- ElvUI_SLE/libs/oUF_NecroStrike/oUF_NecroStrike.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 1.7.9.5