From cd179364cf6a9e5a6732debb4503097d536c946e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Hangst=C3=B6rfer?= Date: Tue, 14 Mar 2017 15:23:31 +0100 Subject: [PATCH] Reset essence number on midphase start --- Encounters/RMT/Laveka.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Encounters/RMT/Laveka.lua b/Encounters/RMT/Laveka.lua index 7f5499d..9928602 100644 --- a/Encounters/RMT/Laveka.lua +++ b/Encounters/RMT/Laveka.lua @@ -489,6 +489,10 @@ function mod:RemoveLostSoulLine() core:RemoveLineBetweenUnits("LOST_SOUL_LINE") end +function mod:OnCacophonyStart() + essenceNumber = 0 +end + ---------------------------------------------------------------------------------------------------- -- Bind event handlers. ---------------------------------------------------------------------------------------------------- @@ -532,6 +536,9 @@ mod:RegisterUnitEvents("unit.laveka",{ ["cast.laveka.devoursouls"] = { [core.E.CAST_END] = mod.OnDevourSoulsStop, }, + ["cast.laveka.cacophony"] = { + [core.E.CAST_START] = mod.OnCacophonyStart, + }, } )