Getting Reference to Enemy Character

The only question that remains is: where should I save this code to? Should it remain in Third Person Character, or should it be somewhere else, since this is calculating the damage that I receive and not the enemy. I can’t collapse it into a macro or function, so I’m not sure where the most optimal place for it be is.