From 2200a36bdf6e618bb27dcd62cf0bddaac587e55f Mon Sep 17 00:00:00 2001 From: abunai Date: Wed, 2 Aug 2023 18:13:23 +0000 Subject: [PATCH] Change Unit.ttd_ticker initialization state Unit.ttd_ticker initialized as 0, which would not allow a new ttd_ticker to be started. This changes the initial state to false. --- src/Unit/Unit.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unit/Unit.lua b/src/Unit/Unit.lua index 8c10a46..581a964 100644 --- a/src/Unit/Unit.lua +++ b/src/Unit/Unit.lua @@ -13,7 +13,7 @@ local Unit = { last_off_attack = 0, last_main_attack = 0, last_combat_time = 0, - ttd_ticker = 0, + ttd_ticker = false, ttd = 0, id = false, } @@ -838,7 +838,7 @@ function Unit:TimeToDie() self.regression_history = {} if self.ttd_ticker then self.ttd_ticker:Cancel() - self.ttd_ticker = nil + self.ttd_ticker = false end return 0 end