You should not put AI logic in AnimBP, but in “Character” Blueprint.
“GetPlayerCharacter” returns local character, not the last who shoot on him.
You can use Event OnHit or Event on Point Damage (or any damage that you implement) and it will return information like Damage Causer which will be actor who made damage.
Aso, you do not need to manually rotate AI, but use Set Focus …