def METHOD_NAME(evt: Event, var: GameState, player: User, old_role: Optional[str]):
    if old_role == "harlot" and evt.data["role"] != "harlot":
        PASSED.discard(player)
        FORCE_PASSED.discard(player)
        if player in VISITED:
            VISITED.pop(player).send(messages["harlot_disappeared"].format(player))