Skip to content

Commit

Permalink
French parser issues for periodic damage solved
Browse files Browse the repository at this point in the history
  • Loading branch information
tdymel committed Apr 19, 2017
1 parent c2f5604 commit 15e2228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DPSMate/DPSMate.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Global Variables
DPSMate = {}
DPSMate.VERSION = 112
DPSMate.VERSION = 113
DPSMate.LOCALE = GetLocale()
DPSMate.SYNCVERSION = DPSMate.VERSION..DPSMate.LOCALE
DPSMate.Parser = CreateFrame("Frame", nil, UIParent)
Expand Down
4 changes: 2 additions & 2 deletions DPSMate_!frFR/DPSMate_ParserFRFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if (GetLocale() == "frFR") then

DPSMate.Parser.PeriodicDamage = function(self, msg)
for a,b in strgfind(msg, "(.+) subit les effets de (.+)%.") do if strfind(b, "%(") then b=strsub(b, 1, strfind(b, "%(")-2) end; DB:ConfirmAfflicted(a, b, GetTime()); if self.CC[b] then DB:BuildActiveCC(a, b) end; return end
for e,d,a,b,c,f in strgfind(msg, "(.+) de (.+) inflige à (.+) (%d+) points de dégâts%s?(.*)%.(.*) (.+) erleidet (%d+) (.-) von (.+) %(durch (.+)%)%.(.*)") do
for e,d,a,b,c,f in strgfind(msg, "(.+) de (.+) inflige à (.+) (%d+) points de dégâts%s?(.*)%.(.*)") do
t = {tnbr(b)}
if f~="" then
DB:SetUnregisterVariables(tnbr(strsub(f, strfind(f, "%d+"))), e..DPSMate.L["periodic"], d)
Expand Down Expand Up @@ -460,7 +460,7 @@ if (GetLocale() == "frFR") then

DPSMate.Parser.CreatureVsSelfMisses = function(self, msg)
for c in strgfind(msg, "(.+) attaque%. Vous absorbez tous les dégâts%.") do DB:Absorb(DPSMate.L["AutoAttack"], self.player, c); return end
for a in strgfind(msg, "(.+) verfehlt Euch%.") do
for a in strgfind(msg, "(.+) vous rate%.") do
DB:EnemyDamage(false, DPSMateEDD, self.player, DPSMate.L["AutoAttack"], 0, 0, 1, 0, 0, 0, 0, a, 0, 0)
DB:DamageTaken(self.player, DPSMate.L["AutoAttack"], 0, 0, 1, 0, 0, 0, 0, a, 0, 0)
return
Expand Down

0 comments on commit 15e2228

Please sign in to comment.