Quantcast

Changed some debug strings…

Taracque [08-30-12 - 08:59]
Changed some debug strings…
Filename
DKCrutch.lua
diff --git a/DKCrutch.lua b/DKCrutch.lua
index dd60c38..898249f 100644
--- a/DKCrutch.lua
+++ b/DKCrutch.lua
@@ -277,7 +277,6 @@ function DKCrutch:PurgePersonTable()
 			if ( DKCrutch.person["friend"][i] ~= 0 ) then
 				DKCrutch.person["friend"][i] = 0	-- mark as inactive
 				DKCrutch.person["friendCount"] = DKCrutch.person["friendCount"] - 1
-				DKCrutch:Debug('Friend removed:', DKCrutch.person["friendCount"])
 			end
 		end
 	end
@@ -292,11 +291,13 @@ function DKCrutch:CountPerson(time, event, sguid, sname, sflags, dguid, dname, d
 		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 DKCrutch.person["foe"][dguid]) or (DKCrutch.person["foe"][dguid]==0)) then
 				DKCrutch.person["foeCount"] = DKCrutch.person["foeCount"] + 1
+				DKCrutch:Debug('Foe Added:', dguid)
 			end
 			DKCrutch.person["foe"][dguid] = GetTime()
     	elseif (bit.band(sflags, COMBATLOG_OBJECT_REACTION_HOSTILE) == COMBATLOG_OBJECT_REACTION_HOSTILE) and (bit.band(sflags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) == COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) and ((stype==0) or (stype==3)) then
 			if ((not DKCrutch.person["foe"][sguid]) or (DKCrutch.person["foe"][sguid]==0)) then
 				DKCrutch.person["foeCount"] = DKCrutch.person["foeCount"] + 1
+				DKCrutch:Debug('Foe Added:', sguid)
 			end
 			DKCrutch.person["foe"][sguid] = GetTime()
 		end