Problem with multiplayer damage when health is stored in player controller

Because any damage gets only called on server. And you casted on client before storing it into a non replicated variable (character class is owned by client iirc) at first. Just cast directly inside any damage with get controller, should fix it, or replicate the casted controller variable. I could be wrong though its 3am and i just woke up lol