def METHOD_NAME(evt: Event, var: GameState, player: User, all_roles: set[str], death_triggers: bool):
    if var.current_phase == "night" and player in GUARDED:
        GUARDED[player].send(messages["protector_disappeared"])
    for dictvar in (GUARDED, LASTGUARDED):
        for k, v in list(dictvar.items()):
            if player in (k, v):
                del dictvar[k]
    PASSED.discard(player)