check if the actor created by the pvp parser is valid and tag the actor as made by pvp parser

This commit is contained in:
Tercio Jose 2024-08-02 13:29:56 -03:00 committed by andrew6180
parent 8b82b9829e
commit f0f664e703

View file

@ -6584,12 +6584,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
@ -6614,12 +6616,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