From 54749df67ab2df70e3b299ef400aad2f75ec6f94 Mon Sep 17 00:00:00 2001 From: Taracque Date: Sun, 19 Oct 2014 11:04:46 +0200 Subject: [PATCH] Hopefully better foe tracking --- Elementarist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elementarist.lua b/Elementarist.lua index 28893d3..fe44cfc 100755 --- a/Elementarist.lua +++ b/Elementarist.lua @@ -436,7 +436,7 @@ function Elementarist:CountPerson(time, event, sguid, sname, sflags, dguid, dnam dtype = (tonumber(dguid:sub(5,5), 16)) % 8; end if (bit.band(dflags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE) and (bit.band(dflags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) == COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) and ((dtype==0) or (dtype==3)) then - if ((not Elementarist.person["foe"][dguid]) or (Elementarist.person["foe"][dguid]==0)) then + if (not Elementarist.person["foe"][dguid]) then Elementarist.person["foeCount"] = Elementarist.person["foeCount"] + 1 Elementarist:Debug('Enemy added', Elementarist.person["foeCount"] .. " " .. dguid .. " " .. dflags) end -- 1.7.9.5