mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 21:20:00 +00:00
fix display of wrong enemy casts
This commit is contained in:
+12
-9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user