Quantcast

Hopefully better foe tracking

Taracque [10-19-14 - 09:04]
Hopefully better foe tracking
Filename
Elementarist.lua
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