From 75c82ac573a6c1183bfe6b6fced6ae758752c457 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 26 Aug 2016 11:55:01 +0200 Subject: [PATCH] fix display of wrong enemy casts --- modules/castbar.lua | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index c430709e..42cab05d 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -271,14 +271,17 @@ pfUI:RegisterModule("castbar", function () pfUI.castbar.target:Action(mob, spell, "afflicted") return end - for spell, mob in string.gfind(arg1, pfLocaleSpellEvents[pfUI.cache["locale"]]['SPELL_HIT']) do - pfUI.castbar.target:Action(mob, spell, "hit") - return - end - for spell, mob in string.gfind(arg1, pfLocaleSpellEvents[pfUI.cache["locale"]]['OTHER_SPELL_HIT']) do - pfUI.castbar.target:Action(mob, spell, "hit") - return - end + -- this part will be used for interruption of spells + --for spell, mob in string.gfind(arg1, pfLocaleSpellEvents[pfUI.cache["locale"]]['SPELL_HIT']) do + -- -- you hit mob with XX + -- -- pfUI.castbar.target:Action(mob, spell, "hit") + -- return + --end + --for spell, mob in string.gfind(arg1, pfLocaleSpellEvents[pfUI.cache["locale"]]['OTHER_SPELL_HIT']) do + -- -- someone hits mob with XX + -- -- pfUI.castbar.target:Action(mob, spell, "hit") + -- return + --end end if UnitExists("target") and pfUI.castbar.target.casterDB[UnitName("target")] then @@ -326,4 +329,4 @@ pfUI:RegisterModule("castbar", function () end end end -end) \ No newline at end of file +end)