From ac5dfab82fc57038d707fb2c4da70d64ee852ad1 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 2 Jan 2025 17:22:39 +0100 Subject: [PATCH] #PLAYERRECCE - Fine tune check when a unit is dead or just per se has less than 2 LifePoints --- Moose Development/Moose/Ops/PlayerRecce.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/PlayerRecce.lua b/Moose Development/Moose/Ops/PlayerRecce.lua index 0f3c1f556..7091139cd 100644 --- a/Moose Development/Moose/Ops/PlayerRecce.lua +++ b/Moose Development/Moose/Ops/PlayerRecce.lua @@ -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