comparison PVPScan.lua @ 8:2f9d1a15506a

- no more tracking on PvE servers.
author Tercioo
date Sat, 19 Dec 2015 20:05:50 -0200
parents bd92dffef495
children f2a55f2d45c8
comparison
equal deleted inserted replaced
7:319a26d3539e 8:2f9d1a15506a
291 return 291 return
292 end 292 end
293 293
294 if (not PVPScan.CurrentShownPlayers [target_name] and _bit_band (target_flags, OBJECT_TYPE_PLAYER) ~= 0) then --> is player 294 if (not PVPScan.CurrentShownPlayers [target_name] and _bit_band (target_flags, OBJECT_TYPE_PLAYER) ~= 0) then --> is player
295 if (_bit_band (target_flags, REACTION_HOSTILE) ~= 0) then --> is hostile 295 if (_bit_band (target_flags, REACTION_HOSTILE) ~= 0) then --> is hostile
296 local pvpType, isFFA, faction = GetZonePVPInfo()
297 if (pvpType ~= "contested" and pvpType ~= "hostile") then
298 return
299 end
296 local class = PVPScan:GuessClass (...) 300 local class = PVPScan:GuessClass (...)
297 PVPScan:EnemySpoted (target_name, target_serial, target_flags, class) 301 PVPScan:EnemySpoted (target_name, target_serial, target_flags, class)
298 end 302 end
299 end 303 end
300 304
301 if (not PVPScan.CurrentShownPlayers [who_name] and _bit_band (who_flags, OBJECT_TYPE_PLAYER) ~= 0) then --> is player 305 if (not PVPScan.CurrentShownPlayers [who_name] and _bit_band (who_flags, OBJECT_TYPE_PLAYER) ~= 0) then --> is player
302 if (_bit_band (who_flags, REACTION_HOSTILE) ~= 0) then --> is hostile 306 if (_bit_band (who_flags, REACTION_HOSTILE) ~= 0) then --> is hostile
307 local pvpType, isFFA, faction = GetZonePVPInfo()
308 if (pvpType ~= "contested" and pvpType ~= "hostile") then
309 return
310 end
303 local class = PVPScan:GuessClass (...) 311 local class = PVPScan:GuessClass (...)
304 PVPScan:EnemySpoted (who_name, who_serial, who_flags, class) 312 PVPScan:EnemySpoted (who_name, who_serial, who_flags, class)
305 end 313 end
306 end 314 end
307 end 315 end