Skip to content

Commit aca4da5

Browse files
committed
System - Partial Large Target fix for rect and cone casts, may need adj
1 parent d6e2b03 commit aca4da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

System/engines/EnemiesEngineFunctions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function getEnemiesInCone(angle,length,showLines,checkNoCombat)
453453

454454
for i = 1, #enemiesTable do
455455
local thisUnit = enemiesTable[i]
456-
local unitX, unitY, unitZ = GetObjectPosition(thisUnit)
456+
local unitX, unitY, unitZ = GetPositionBetweenObjects(thisUnit, "player", UnitCombatReach(thisUnit))--GetObjectPosition(thisUnit)
457457
if playerX and unitX then
458458
local angleToUnit = getAngles(playerX,playerY,playerZ,unitX,unitY,unitZ)
459459
local angleDifference = facing > angleToUnit and facing - angleToUnit or angleToUnit - facing
@@ -511,7 +511,7 @@ function getEnemiesInRect(width,length,showLines,checkNoCombat)
511511
for i = 1, #enemiesTable do
512512
local thisUnit = enemiesTable[i]
513513
-- if thisUnit ~= "target" then
514-
local tX, tY = GetObjectPosition(thisUnit)
514+
local tX, tY = GetPositionBetweenObjects(thisUnit, "player", UnitCombatReach(thisUnit)) --GetObjectPosition(thisUnit)
515515
-- end
516516
if tX and tY then
517517
if isInside(tX,tY,nlX,nlY,nrX,nrY,frX,frY) then

0 commit comments

Comments
 (0)