From cb4c49b1b338bf042f4a7d6540c4e12e95181439 Mon Sep 17 00:00:00 2001 From: jeffi Date: Tue, 7 May 2024 13:20:28 -0500 Subject: [PATCH] Updates to missile --- src/MissileManager/MissileManager.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MissileManager/MissileManager.lua b/src/MissileManager/MissileManager.lua index b6c1f8e..a6d44c3 100644 --- a/src/MissileManager/MissileManager.lua +++ b/src/MissileManager/MissileManager.lua @@ -84,8 +84,8 @@ function MissileManager:EnumTrackingParams(missileObj) for i, trackingParam in ipairs(self.trackingParams) do if (not trackingParam.source or missileObj:GetSourceUnit():IsUnit(trackingParam.source)) and (not trackingParam.target or missileObj:GetTargetUnit():IsUnit(trackingParam.target)) and - (not trackingParam.spellId or missileObj._missile.spellId == trackingParam.spellId) and - (not trackingParam.spellVisualId or missileObj._missile.spellVisualId == trackingParam.spellVisualId) + (not trackingParam.spellId or missileObj.spellId == trackingParam.spellId) and + (not trackingParam.spellVisualId or missileObj.spellVisualId == trackingParam.spellVisualId) then tracked = true trackingParam.callback(missileObj) @@ -125,8 +125,8 @@ function MissileManager:GetMissiles(params) for _, missile in ipairs(self.trackedMissiles) do if (not params.source or missile:GetSourceUnit():IsUnit(params.source)) and (not params.target or missile:GetTargetUnit():IsUnit(params.target)) and - (not params.spellId or missile._missile.spellId == params.spellId) and - (not params.spellVisualId or missile._missile.spellVisualId == params.spellVisualId) + (not params.spellId or missile.spellId == params.spellId) and + (not params.spellVisualId or missile.spellVisualId == params.spellVisualId) then table.insert(missiles, missile) end