here's the code:
on damage:
if attacker is player:
remove duplicates from {playersDealDamage::*}
set {_attacker} to attacker
add {_attacker} to {playersDealDamage::*}
it is necessary to remove duplicates from the list, but has not yet found suitable solutions, read the documentation, used artificial intelligence, everything is in vain, I will be glad if you help, or bring it to the right solution. Thank you 🥰
P.S: remove duplicates from {playersDealDamage::*} isn`t work