def METHOD_NAME(evt: Event, var: GameState, actor: User, target: User, role: str):
    if role == "turncoat":
        TURNCOATS[actor], TURNCOATS[target] = TURNCOATS.pop(target), TURNCOATS.pop(actor)
        for user, to_send in ((actor, "actor_messages"), (target, "target_messages")):
            key = "turncoat_current_no_team"
            if TURNCOATS[user][0] != "none":
                key = "turncoat_current_team"
            evt.data[to_send].append(messages[key].format(TURNCOATS[user][0]))