# HG changeset patch # User Tercioo # Date 1450562750 7200 # Node ID 2f9d1a15506aa2311ae98f8b7aea5528f47cf4ba # Parent 319a26d3539e8a594029379c8a169a7d4d8f5802 - no more tracking on PvE servers. diff -r 319a26d3539e -r 2f9d1a15506a PVPScan.lua --- 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