That screenshot makes no sense. IsAttack is a replicated variable. You shouldn’t be modifying it in a multicast. Set it once on the server and use an OnRep if you need to.
Also, SwitchHasAuthority is redundant coming out of a server RPC, it can not be run anywhere except the server.