mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#PLAYERRECCE - Fine tune check when a unit is dead or just per se has less than 2 LifePoints
This commit is contained in:
parent
13d5f4ac99
commit
ac5dfab82f
@ -106,7 +106,7 @@ PLAYERRECCE = {
|
||||
ClassName = "PLAYERRECCE",
|
||||
verbose = true,
|
||||
lid = nil,
|
||||
version = "0.1.23",
|
||||
version = "0.1.24",
|
||||
ViewZone = {},
|
||||
ViewZoneVisual = {},
|
||||
ViewZoneLaser = {},
|
||||
@ -934,7 +934,7 @@ function PLAYERRECCE:_LaseTarget(client,targetset)
|
||||
-- lost LOS or dead
|
||||
laser:LaseOff()
|
||||
self:T(self.lid.."Target Life Points: "..target:GetLife() or "none")
|
||||
if target:IsDead() or target:IsDestroyed() or target:GetLife() < 2 then
|
||||
if target:IsDead() or target:IsDestroyed() or target:GetDamage() > 79 or target:GetLife() <= 1 then
|
||||
self:__Shack(-1,client,oldtarget)
|
||||
--self.LaserTarget[playername] = nil
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user