changeset 8:2f9d1a15506a

- no more tracking on PvE servers.
author Tercioo
date Sat, 19 Dec 2015 20:05:50 -0200
parents 319a26d3539e
children f2a55f2d45c8
files PVPScan.lua
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/PVPScan.lua	Tue Jun 23 13:34:53 2015 -0300
+++ b/PVPScan.lua	Sat Dec 19 20:05:50 2015 -0200
@@ -293,6 +293,10 @@
 		
 		if (not PVPScan.CurrentShownPlayers [target_name] and _bit_band (target_flags, OBJECT_TYPE_PLAYER) ~= 0) then --> is player
 			if (_bit_band (target_flags, REACTION_HOSTILE) ~= 0) then --> is hostile
+				local pvpType, isFFA, faction = GetZonePVPInfo()
+				if (pvpType ~= "contested" and pvpType ~= "hostile") then
+					return
+				end
 				local class = PVPScan:GuessClass (...)
 				PVPScan:EnemySpoted (target_name, target_serial, target_flags, class)
 			end
@@ -300,6 +304,10 @@
 		
 		if (not PVPScan.CurrentShownPlayers [who_name] and _bit_band (who_flags, OBJECT_TYPE_PLAYER) ~= 0) then --> is player
 			if (_bit_band (who_flags, REACTION_HOSTILE) ~= 0) then --> is hostile
+				local pvpType, isFFA, faction = GetZonePVPInfo()
+				if (pvpType ~= "contested" and pvpType ~= "hostile") then
+					return
+				end
 				local class = PVPScan:GuessClass (...)
 				PVPScan:EnemySpoted (who_name, who_serial, who_flags, class)
 			end