[BCC] v1.5 error in Sethekk Halls normal
Road-block opened this issue · 3 comments
This happens when Time-Lost Controller summons a Charming Totem which then proceeds to mind-control a player.
This is in normal difficulty, might be an issue with mind-controls from summoned minions or controls that have no expiration until the npc is killed, in general, but haven't had a chance to test elsewhere.
Relevant NPCs and spells.
- Time-Lost Controller
- Summon Charming Totem
- Charming Totem
- Charm
◀️ this is the effect that causes the error
1x LoCA\Modules\Debuffs.lua:509: attempt to perform arithmetic on field 'timeLeft' (a nil value)
[string "@LoCA\Modules\Debuffs.lua"]:509: in function 'ActivateNewDebuff'
[string "@LoCA\Modules\Debuffs.lua"]:255: in function 'OnLossOfControlEvent'
[string "@LoCA\Modules\Debuffs.lua"]:265: in function 'OnLossOfControlUpdate'
[string "@LoCA\LoCA-1.5.lua"]:162: in function <LoCA\LoCA.lua:148>
Thanks a lot for the report, this issue has been a pain to fix :D I've been incrementally fixing different scenarios thanks to reports like this, because it's kind of annoying to go and reproduce it in the dungeon.
I'm deploying a new version which should fix this case. I'll wait a few days to see if any other reports turn up, if not then I'll close the issue
Yeah, that's what should be happening, but I just wasn't checking whether the duration of the control effect was nil, so whenever a nil one would come it threw the error.