Merge pull request #2257 from leka1986/patch-2

Update Range.lua
This commit is contained in:
Frank 2025-02-18 21:37:37 +01:00 committed by GitHub
commit 749c5f87de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1933,7 +1933,7 @@ function RANGE:OnEventHit( EventData )
local _currentTarget = self.strafeStatus[_unitID] --#RANGE.StrafeStatus
-- Player has rolled in on a strafing target.
if _currentTarget and target:IsAlive() then
if _currentTarget and target and target:IsAlive() then
local playerPos = _unit:GetCoordinate()
local targetPos = target:GetCoordinate()