fix display of wrong enemy casts

This commit is contained in:
shagu
2016-08-26 11:55:01 +02:00
parent 626b5b3488
commit 75c82ac573
+12 -9
View File
@@ -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)
end)