Skip to content

Commit

Permalink
check if the actor created by the pvp parser is valid and tag the act…
Browse files Browse the repository at this point in the history
…or as made by pvp parser
  • Loading branch information
Tercioo committed Aug 2, 2024
1 parent c17b1e8 commit 3aec9e9
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7240,12 +7240,14 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end

actor = _current_damage_container:GetOrCreateActor (guid, name, flag, true)
actor.total = Details:GetOrderNumber()
actor.classe = classToken or "UNKNOW"

if (flag == 0x548) then
--oponent
actor.enemy = true
if (actor) then
actor.total = Details:GetOrderNumber()
actor.classe = classToken or "UNKNOW"
if (flag == 0x548) then
--oponent
actor.enemy = true
end
actor.made_by_pvpparser = true
end
end
end
Expand All @@ -7270,12 +7272,14 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end

actor = _current_heal_container:GetOrCreateActor (guid, name, flag, true)
actor.total = Details:GetOrderNumber()
actor.classe = classToken or "UNKNOW"

if (flag == 0x548) then
--oponent
actor.enemy = true
if (actor) then
actor.total = Details:GetOrderNumber()
actor.classe = classToken or "UNKNOW"
if (flag == 0x548) then
--oponent
actor.enemy = true
end
actor.made_by_pvpparser = true
end
end
end
Expand Down

0 comments on commit 3aec9e9

Please sign in to comment.